mirror of
https://github.com/StarWishsama/Slimefun4.git
synced 2024-09-20 19:55:48 +00:00
Fixed a little issue.
This commit is contained in:
parent
d40b6199e9
commit
2bad759178
@ -59,7 +59,7 @@ public class BeeWingListener implements Listener {
|
|||||||
|
|
||||||
// getDistanceToGround will only fire when playerDistanceToHighestBlock is negative (which happens when a player is flying under an existing structure)
|
// getDistanceToGround will only fire when playerDistanceToHighestBlock is negative (which happens when a player is flying under an existing structure)
|
||||||
if (distanceToHighestBlock < 0) {
|
if (distanceToHighestBlock < 0) {
|
||||||
if (getDistanceToGround(loc) > 6) return;
|
if (getDistanceToGround(loc.clone()) > 6) return;
|
||||||
player.addPotionEffect(new PotionEffect(PotionEffectType.SLOW_FALLING, 40, 0));
|
player.addPotionEffect(new PotionEffect(PotionEffectType.SLOW_FALLING, 40, 0));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user