mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-27 23:45:48 +00:00
quick fix : Redundant type cast
This commit is contained in:
1 parent
b34eec4dea
commit
2d13e6185e
84 files changed
+426
-434
No files matched your search
@@ -145,7 +145,7 @@ public class Crossbow extends ProjectileWeapon {
|
||||
if (ammo.getItem() instanceof IAmmo) ((IAmmo) ammo.getItem()).consumeAmmo(1, ammo);
|
||||
else {
|
||||
if (Loader.isModLoaded("battlegear2")) {
|
||||
((InventoryPlayerBattle) player.inventory).consumeInventoryItem(ammo.getItem());
|
||||
player.inventory.consumeInventoryItem(ammo.getItem());
|
||||
} else {
|
||||
player.inventory.consumeInventoryItem(ammo.getItem());
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user