quick fix : Redundant type cast

This commit is contained in:
Alexdoru authored and Jason Mitchell committed 2023-01-28 18:02:41 -08:00
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());
}