mirror of
https://github.com/TotalFreedomMC/TF-ProjectKorra.git
synced 2025-02-11 11:40:40 +00:00
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:
parent
f391bba83d
commit
44c31d1651
1 changed files with 7 additions and 0 deletions
|
@ -42,6 +42,13 @@ public class WaterSpout {
|
|||
return;
|
||||
}
|
||||
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);
|
||||
player.setAllowFlight(true);
|
||||
instances.put(player, this);
|
||||
|
|
Loading…
Reference in a new issue