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
@@ -155,26 +155,26 @@ public class Landmine extends MantleBlock {
|
||||
|
||||
if (this.triggerMobType == EnumCreatureType.creature) {
|
||||
var8 = world.getEntitiesWithinAABBExcludingEntity(
|
||||
(Entity) null,
|
||||
null,
|
||||
AxisAlignedBB.getBoundingBox(
|
||||
(double) ((float) posX + var7),
|
||||
(double) posY,
|
||||
(double) ((float) posZ + var7),
|
||||
(double) ((float) (posX + 1) - var7),
|
||||
(float) posX + var7,
|
||||
posY,
|
||||
(float) posZ + var7,
|
||||
(float) (posX + 1) - var7,
|
||||
(double) posY + 0.25D,
|
||||
(double) ((float) (posZ + 1) - var7)));
|
||||
(float) (posZ + 1) - var7));
|
||||
}
|
||||
|
||||
if (this.triggerMobType == EnumCreatureType.monster) {
|
||||
var8 = world.getEntitiesWithinAABB(
|
||||
EntityLiving.class,
|
||||
AxisAlignedBB.getBoundingBox(
|
||||
(double) ((float) posX + var7),
|
||||
(double) posY,
|
||||
(double) ((float) posZ + var7),
|
||||
(double) ((float) (posX + 1) - var7),
|
||||
(float) posX + var7,
|
||||
posY,
|
||||
(float) posZ + var7,
|
||||
(float) (posX + 1) - var7,
|
||||
(double) posY + 0.25D,
|
||||
(double) ((float) (posZ + 1) - var7)));
|
||||
(float) (posZ + 1) - var7));
|
||||
}
|
||||
|
||||
/*
|
||||
@@ -197,7 +197,7 @@ public class Landmine extends MantleBlock {
|
||||
|
||||
if (var6 && !var5) {
|
||||
WorldHelper.setBlockToAir(world, posX, posY, posZ);
|
||||
world.createExplosion((Entity) null, posX, posY, posZ, 2.0F, true);
|
||||
world.createExplosion(null, posX, posY, posZ, 2.0F, true);
|
||||
/*
|
||||
* par1World.setBlockMetadataWithNotify(posX, posY, posZ, 1);
|
||||
* par1World.notifyBlocksOfNeighborChange(posX, posY, posZ,
|
||||
|
||||
Reference in new issue
Block a user