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
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user