mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-17 02:45:13 +00:00
Restore storage drawers compat, closes #166
This commit is contained in:
1 parent
e25cf207a6
commit
3097dde357
1 file changed
+2
-2
@@ -112,8 +112,8 @@ public class WrappedStorageDrawers extends WrappedInventoryBase {
|
||||
* @return wrapped inventory or null if it has incompatible type.
|
||||
*/
|
||||
public static IWrappedInventory wrap(InvWithLocation inv, ICorporeaSpark spark) {
|
||||
if(inv.handler instanceof InvWrapper && ((InvWrapper) inv.handler).inv instanceof IDrawerGroup) {
|
||||
return new WrappedStorageDrawers((IDrawerGroup) ((InvWrapper) inv.handler).inv, spark);
|
||||
if(inv.world.getTileEntity(inv.pos) instanceof IDrawerGroup) {
|
||||
return new WrappedStorageDrawers((IDrawerGroup) inv.world.getTileEntity(inv.pos), spark);
|
||||
} else return null;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user