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

@@ -90,8 +90,8 @@ public class CrosshairHandler {
}
private void drawCrosshairPart(float width, float height, int part) {
double w = (double) width;
double h = (double) height;
double w = width;
double h = height;
double s = 4;
double z = -90;
@@ -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());
}