WaterSpout Creation Problem

Fixed a problem where WaterSpout wasn't starting if the player was
submerged underwater.
This commit is contained in:
nathank33 2014-09-06 00:47:11 -07:00
parent d7f2dc7419
commit 2ad44f6a78

View file

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