Skip to content
Snippets Groups Projects
Commit 9af65126 authored by Zandor Smith's avatar Zandor Smith :computer:
Browse files

* Fixed able to fly in the air.

parent 1626c810
No related branches found
No related tags found
No related merge requests found
......@@ -87,6 +87,8 @@ public class TorchLight extends JavaPlugin {
state.getLocation().getBlock().setData(state.getData().getData());
}
Location location = new Location(player.getWorld(), player.getLocation().getX(), player.getLocation().getY() - 1, player.getLocation().getZ());
while(location.getBlock().getType().equals(Material.AIR))
location.add(0, -1, 0);
playerState.put(player.getName(), location.getBlock().getState());
location.getBlock().setType(Material.GLOWSTONE);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment