mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-21 12:42:57 +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
@@ -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());
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user