Skip to content
This repository was archived by the owner on Mar 8, 2022. It is now read-only.

Commit 0cf7faa

Browse files
committed
fix elytra enhance
1 parent f0717e0 commit 0cf7faa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/cat/nyaa/nyaautils/elytra/ElytraEnhanceListener.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ public void playerMove(PlayerMoveEvent e) {
3535
if (player.isGliding() &&
3636
plugin.cfg.elytra_enhance_enabled &&
3737
!plugin.cfg.disabled_world.contains(player.getWorld().getName()) &&
38-
player.getLocation().getBlock().getType() == Material.AIR &&
39-
player.getEyeLocation().getBlock().getType() == Material.AIR &&
38+
player.getLocation().getBlock().isEmpty() &&
39+
player.getEyeLocation().getBlock().isEmpty() &&
4040
!disableFuelMode.containsKey(player.getUniqueId()) &&
4141
!player.isSneaking()) {
4242
if (!FuelMode.contains(player.getUniqueId()) &&

0 commit comments

Comments
 (0)