diff --git a/src/main/kotlin/ru/dbotthepony/mc/otm/block/tech/AndroidChargerBlock.kt b/src/main/kotlin/ru/dbotthepony/mc/otm/block/tech/AndroidChargerBlock.kt index 93faa46bc..2ffc08985 100644 --- a/src/main/kotlin/ru/dbotthepony/mc/otm/block/tech/AndroidChargerBlock.kt +++ b/src/main/kotlin/ru/dbotthepony/mc/otm/block/tech/AndroidChargerBlock.kt @@ -57,10 +57,10 @@ class AndroidChargerBlock : RotatableMatteryBlock(Properties.of().destroyTime(2. override fun getStateForPlacement(context: BlockPlaceContext): BlockState? { val level = context.level - if (level.isOutsideBuildHeight(context.clickedPos + BlockPos(0, 0, 2))) return null + if (level.isOutsideBuildHeight(context.clickedPos + BlockPos(0, 2, 0))) return null for (i in 1 .. 2) { - val pos = context.clickedPos + BlockPos(0, 0, i) + val pos = context.clickedPos + BlockPos(0, i, 0) if (!level.getBlockState(pos).canBeReplaced(context)) return null }