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

fixed error on startup

This commit is contained in:
Jeffrey Kosse 2022-03-22 07:35:13 +01:00
parent b7825a4c95
commit 15dce08769

View File

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