diff --git a/src/main/java/dan200/computercraft/shared/peripheral/generic/methods/InventoryMethods.java b/src/main/java/dan200/computercraft/shared/peripheral/generic/methods/InventoryMethods.java index 421f75492..4b5d76be1 100644 --- a/src/main/java/dan200/computercraft/shared/peripheral/generic/methods/InventoryMethods.java +++ b/src/main/java/dan200/computercraft/shared/peripheral/generic/methods/InventoryMethods.java @@ -290,6 +290,10 @@ public class InventoryMethods implements GenericSource return ItemStorage.wrap( inventory ); } } + else if ( object instanceof Inventory ) + { + return ItemStorage.wrap( (Inventory) object ); + } return null; }