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:
@@ -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()) {
|
||||
|
||||
Reference in New Issue
Block a user