Skip to content

Commit 34f67b3

Browse files
dont check if our capaibily is null
1 parent 7c1beb8 commit 34f67b3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/main/java/gregtech/common/covers/CoverConveyor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ public void update() {
9797
TileEntity tileEntity = coverHolder.getWorld().getTileEntity(coverHolder.getPos().offset(attachedSide));
9898
IItemHandler itemHandler = tileEntity == null ? null : tileEntity.getCapability(CapabilityItemHandler.ITEM_HANDLER_CAPABILITY, attachedSide.getOpposite());
9999
IItemHandler myItemHandler = coverHolder.getCapability(CapabilityItemHandler.ITEM_HANDLER_CAPABILITY, attachedSide);
100-
if (itemHandler == null || myItemHandler == null) {
100+
if (itemHandler == null) {
101101
if (conveyorMode == ConveyorMode.IMPORT) setSituation(NO_IMPORT_INVENTORY);
102102
if (conveyorMode == ConveyorMode.EXPORT) setSituation(NO_EXPORT_INVENTORY);
103103
} else {

src/main/java/gregtech/common/covers/CoverPump.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ protected int doTransferFluids(int transferLimit) {
123123
blockPos.release();
124124
IFluidHandler fluidHandler = tileEntity == null ? null : tileEntity.getCapability(CapabilityFluidHandler.FLUID_HANDLER_CAPABILITY, attachedSide.getOpposite());
125125
IFluidHandler myFluidHandler = coverHolder.getCapability(CapabilityFluidHandler.FLUID_HANDLER_CAPABILITY, attachedSide);
126-
if (fluidHandler == null || myFluidHandler == null) {
126+
if (fluidHandler == null) {
127127
if (pumpMode == PumpMode.IMPORT) setSituation(NO_IMPORT_TANK);
128128
if (pumpMode == PumpMode.EXPORT) setSituation(NO_EXPORT_TANK);
129129
return 0;

0 commit comments

Comments
 (0)