mirror of
https://github.com/TotalFreedomMC/TF-ProjectKorra.git
synced 2025-02-11 11:40:40 +00:00
WaterSpout Creation Problem
Fixed a problem where WaterSpout wasn't starting if the player was submerged underwater.
This commit is contained in:
parent
d7f2dc7419
commit
2ad44f6a78
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue