mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-24 22:14:31 +00:00
quick fix : 'if' statement with identical branches
This commit is contained in:
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;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user