mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-21 12:42:57 +00:00
quick fix : Condition is covered by further condition
This commit is contained in:
1 parent
4ad67bc34b
commit
f446ea280f
17 files changed
+16
-25
No files matched your search
@@ -49,7 +49,7 @@ public class CastingChannelLogic extends TileEntity implements IFluidHandler {
|
||||
boolean flagActiveFaucet = false;
|
||||
|
||||
TileEntity possibleFaucet = worldObj.getTileEntity(xCoord, yCoord + 1, zCoord);
|
||||
if (possibleFaucet != null && possibleFaucet instanceof FaucetLogic)
|
||||
if (possibleFaucet instanceof FaucetLogic)
|
||||
flagActiveFaucet = ((FaucetLogic) possibleFaucet).active;
|
||||
|
||||
if (ticks == 6) // && !flagActiveFaucet)
|
||||
@@ -297,8 +297,7 @@ public class CastingChannelLogic extends TileEntity implements IFluidHandler {
|
||||
int tY = this.yCoord + fd.offsetY;
|
||||
int tZ = this.zCoord + fd.offsetZ;
|
||||
TileEntity tile = this.worldObj.getTileEntity(tX, tY, tZ);
|
||||
|
||||
if (tile != null && tile instanceof IFluidHandler) map.put(fd, tile);
|
||||
if (tile instanceof IFluidHandler) map.put(fd, tile);
|
||||
}
|
||||
return map;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user