mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-13 17:04:24 +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
@@ -461,17 +461,15 @@ public class ArrowEntity extends EntityArrow implements IEntityAdditionalSpawnDa
|
||||
l = 64 - stack.stackSize;
|
||||
}
|
||||
|
||||
if (l == 0) {
|
||||
return stackSize;
|
||||
} else {
|
||||
if (l != 0) {
|
||||
stackSize -= l;
|
||||
stack.stackSize += l;
|
||||
living.setCurrentItemOrArmor(slotID, stack);
|
||||
if (living instanceof EntityLiving)
|
||||
if (living instanceof EntityLiving) {
|
||||
((EntityLiving) living).setEquipmentDropChance(slotID, 2.0f);
|
||||
|
||||
return stackSize;
|
||||
}
|
||||
}
|
||||
return stackSize;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user