quick fix : Condition is covered by further condition

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