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

@@ -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;
}
}
}