Remove useless check in external storage item handler.

This commit is contained in:
raoulvdberge
2018-06-01 15:43:07 +02:00
parent da1ea87131
commit 3f360705f2
2 changed files with 1 additions and 10 deletions

View File

@@ -6,7 +6,6 @@ import com.raoulvdberge.refinedstorage.tile.TileInterface;
import com.raoulvdberge.refinedstorage.tile.config.IFilterable;
import com.raoulvdberge.refinedstorage.util.StackUtils;
import net.minecraft.item.ItemStack;
import net.minecraft.tileentity.TileEntity;
import net.minecraftforge.items.IItemHandler;
import net.minecraftforge.items.ItemHandlerHelper;
@@ -25,14 +24,7 @@ public class StorageItemItemHandler extends StorageItemExternal {
public StorageItemItemHandler(NetworkNodeExternalStorage externalStorage, Supplier<IItemHandler> handlerSupplier) {
this.externalStorage = externalStorage;
this.handlerSupplier = handlerSupplier;
TileEntity tile = externalStorage.getFacingTile();
if (tile instanceof TileInterface) {
// Make sure we override our handler supplier so we don't get network items as well (which leads to unstable behavior)
this.handlerSupplier = ((TileInterface) tile).getNode()::getItems;
this.connectedToInterface = true;
}
this.connectedToInterface = externalStorage.getFacingTile() instanceof TileInterface;
}
public boolean isConnectedToInterface() {

View File

@@ -24,7 +24,6 @@ import java.util.List;
public class BlockWirelessTransmitter extends BlockNode {
// From BlockTorch
// TODO: make consistent with shape
private static final AxisAlignedBB WIRELESS_TRANSMITTER_AABB = new AxisAlignedBB(0.4000000059604645D, 0.0D, 0.4000000059604645D, 0.6000000238418579D, 0.6000000238418579D, 0.6000000238418579D);
public BlockWirelessTransmitter() {