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:
parent
b7825a4c95
commit
15dce08769
@ -36,6 +36,11 @@ public class BeeWingsListener implements Listener {
|
|||||||
|
|
||||||
@EventHandler(ignoreCancelled = true)
|
@EventHandler(ignoreCancelled = true)
|
||||||
public void onApproachGround(EntityToggleGlideEvent e) {
|
public void onApproachGround(EntityToggleGlideEvent e) {
|
||||||
|
|
||||||
|
if (wings == null) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (!e.isGliding() || wings.isDisabled() || !(e.getEntity() instanceof Player)) {
|
if (!e.isGliding() || wings.isDisabled() || !(e.getEntity() instanceof Player)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user