From 0dcf8d68c11914f3a233accb34cc699ceeff46e5 Mon Sep 17 00:00:00 2001 From: DBotThePony Date: Wed, 29 Jun 2022 18:00:31 +0700 Subject: [PATCH] Fix storage bus not passing side to neightbour --- .../mc/otm/block/entity/storage/StorageBusBlockEntity.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/ru/dbotthepony/mc/otm/block/entity/storage/StorageBusBlockEntity.kt b/src/main/kotlin/ru/dbotthepony/mc/otm/block/entity/storage/StorageBusBlockEntity.kt index 84b541357..97bd99112 100644 --- a/src/main/kotlin/ru/dbotthepony/mc/otm/block/entity/storage/StorageBusBlockEntity.kt +++ b/src/main/kotlin/ru/dbotthepony/mc/otm/block/entity/storage/StorageBusBlockEntity.kt @@ -156,7 +156,7 @@ class StorageBusBlockEntity(blockPos: BlockPos, blockState: BlockState) : Matter return val front = blockPos + blockState.getValue(RotatableMatteryBlock.FACING_FULL) - val storage = level?.getBlockEntity(front)?.getCapability(CapabilityItemHandler.ITEM_HANDLER_CAPABILITY)?.let { if (it.isPresent) it else null } + val storage = level?.getBlockEntity(front)?.getCapability(CapabilityItemHandler.ITEM_HANDLER_CAPABILITY, -blockState.getValue(RotatableMatteryBlock.FACING_FULL))?.let { if (it.isPresent) it else null } if (neighbour != storage) { neighbour = storage