quick fix : 'if' statement with identical branches

This commit is contained in:
Alexdoru authored and Jason Mitchell committed 2023-01-28 18:02:41 -08:00
1 parent 04c7d32b53
commit fc54dde7ce
16 files changed
+39 -84

No files matched your search

@@ -61,14 +61,13 @@ public class ItemSlimeBoots extends ItemArmor implements ISpecialArmor {
ItemStack itemstack = playerIn.getEquipmentInSlot(slot);
if (itemstack == null) {
playerIn.setCurrentItemOrArmor(slot, itemStackIn.copy());
itemStackIn.stackSize--;
} else {
itemstack = itemstack.copy();
playerIn.setCurrentItemOrArmor(1, itemStackIn.copy());
// playerIn.setCurrentItemOrArmor(0, itemstack);
playerIn.entityDropItem(itemstack, 0);
itemStackIn.stackSize--;
}
itemStackIn.stackSize--;
return itemStackIn;
}