mirror of
https://github.com/TotalFreedomMC/TF-ProjectKorra.git
synced 2025-02-11 19:50:37 +00:00
WaterSpout No Fall Damage NPE Fix
This commit is contained in:
parent
5f3ca7883e
commit
cc092a9ae8
1 changed files with 2 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue