WaterSpout No Fall Damage NPE Fix

This commit is contained in:
nathank33 2014-09-04 18:02:45 -07:00
parent 5f3ca7883e
commit cc092a9ae8

View file

@ -45,6 +45,8 @@ public class WaterSpout {
}
this.player = player;
Block topBlock = Methods.getTopBlock(player.getLocation(), 0, -50);
if(topBlock == null)
return;
Material mat = topBlock.getType();
if(mat != Material.WATER && mat != Material.STATIONARY_WATER
&& mat != Material.ICE && mat != Material.PACKED_ICE && mat != Material.SNOW)