diff --git a/common/src/main/java/com/hibiscusmc/hmccosmetics/listener/PlayerGameListener.java b/common/src/main/java/com/hibiscusmc/hmccosmetics/listener/PlayerGameListener.java index 1157ceb5..3e8be70e 100644 --- a/common/src/main/java/com/hibiscusmc/hmccosmetics/listener/PlayerGameListener.java +++ b/common/src/main/java/com/hibiscusmc/hmccosmetics/listener/PlayerGameListener.java @@ -201,10 +201,12 @@ public class PlayerGameListener implements Listener { if (pose.equals(Pose.STANDING)) { // #84, Riptides mess with backpacks ItemStack currentItem = player.getInventory().getItemInMainHand(); - if (currentItem == null) return; - if (!currentItem.hasItemMeta()) return; - if (currentItem.containsEnchantment(Enchantment.RIPTIDE)) { - return; + if (currentItem != null) { + if (currentItem.hasItemMeta()) { + if (currentItem.containsEnchantment(Enchantment.RIPTIDE)) { + return; + } + } } if (!user.isBackpackSpawned()) {