WaterSpout No Fall Damage

A player used to be able to avoid fall damage by spamming left click
while falling.
This commit is contained in:
nathank33 2014-09-04 14:19:03 -07:00
parent f391bba83d
commit 44c31d1651

View file

@ -42,6 +42,13 @@ public class WaterSpout {
return; return;
} }
this.player = player; this.player = player;
Block block = player.getLocation().clone().add(0,-1,0).getBlock();
Material mat = block.getType();
if(mat != Material.WATER && mat != Material.STATIONARY_WATER
&& mat != Material.ICE && mat != Material.PACKED_ICE && mat != Material.SNOW)
return;
new Flight(player); new Flight(player);
player.setAllowFlight(true); player.setAllowFlight(true);
instances.put(player, this); instances.put(player, this);