mirror of
https://github.com/Creators-of-Create/Create.git
synced 2024-12-14 23:43:43 +01:00
Deny ProcessingInventories from Mounted Storage
This commit is contained in:
parent
971ce29b6a
commit
2852756a68
1 changed files with 3 additions and 1 deletions
|
@ -1,6 +1,7 @@
|
|||
package com.simibubi.create.content.contraptions.components.structureMovement;
|
||||
|
||||
import com.simibubi.create.AllTileEntities;
|
||||
import com.simibubi.create.content.contraptions.processing.ProcessingInventory;
|
||||
import com.simibubi.create.content.logistics.block.inventories.AdjustableCrateBlock;
|
||||
import com.simibubi.create.content.logistics.block.inventories.BottomlessItemHandler;
|
||||
import com.simibubi.create.foundation.utility.NBTHelper;
|
||||
|
@ -44,7 +45,8 @@ public class MountedStorage {
|
|||
return true;
|
||||
|
||||
LazyOptional<IItemHandler> capability = te.getCapability(CapabilityItemHandler.ITEM_HANDLER_CAPABILITY);
|
||||
return capability.orElse(null) instanceof ItemStackHandler;
|
||||
IItemHandler handler = capability.orElse(null);
|
||||
return handler instanceof ItemStackHandler && !(handler instanceof ProcessingInventory);
|
||||
}
|
||||
|
||||
public MountedStorage(TileEntity te) {
|
||||
|
|
Loading…
Reference in a new issue