1
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:
LinoxGH 2020-09-16 21:54:23 +03:00 committed by GitHub
parent d40b6199e9
commit 2bad759178
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;
} }