1
mirror of https://github.com/StarWishsama/Slimefun4.git synced 2024-09-20 03:35:51 +00:00

did requested changes

This commit is contained in:
Jeffrey Kosse 2022-04-05 19:34:06 +02:00
parent 15dce08769
commit 30386fbcb5

View File

@ -37,11 +37,7 @@ public class BeeWingsListener implements Listener {
@EventHandler(ignoreCancelled = true) @EventHandler(ignoreCancelled = true)
public void onApproachGround(EntityToggleGlideEvent e) { public void onApproachGround(EntityToggleGlideEvent e) {
if (wings == null) { if (wings == null || !e.isGliding() || wings.isDisabled() || !(e.getEntity() instanceof Player)) {
return;
}
if (!e.isGliding() || wings.isDisabled() || !(e.getEntity() instanceof Player)) {
return; return;
} }