9
0
mirror of https://github.com/HibiscusMC/HMCCosmetics.git synced 2025-12-30 04:19:28 +00:00

fix: Standing does not readd backpack

This commit is contained in:
LoJoSho
2023-04-09 11:08:40 -05:00
parent cc6aec99e0
commit 71c8f8171b

View File

@@ -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()) {