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

@@ -37,10 +37,7 @@ public class FaucetLogic extends TileEntity implements IFacingLogic, IActiveLogi
TileEntity drainte = worldObj.getTileEntity(x, yCoord, z);
TileEntity tankte = worldObj.getTileEntity(xCoord, yCoord - 1, zCoord);
if (drainte != null
&& drainte instanceof IFluidHandler
&& tankte != null
&& tankte instanceof IFluidHandler) {
if (drainte instanceof IFluidHandler && tankte instanceof IFluidHandler) {
FluidStack templiquid =
((IFluidHandler) drainte).drain(getForgeDirection(), TConstruct.ingotLiquidValue, false);
if (templiquid != null) {