File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
common/src/main/kotlin/com/lambda/task/tasks Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -60,11 +60,12 @@ class PlaceContainer @Ta5kBuilder constructor(
6060 .simulate(player.eyePos)
6161 }
6262
63+ // ToDo: Check based on if we can move the player close enough rather than y level once the custom pathfinder is merged
6364 val succeeds = results.filterIsInstance<PlaceResult .Place >().filter {
64- canBeOpened(startStack, it.blockPos, it.context.result.side)
65+ canBeOpened(startStack, it.blockPos, it.context.result.side) && it.blockPos.y == player.blockPos.y
6566 }
6667 val wrongStacks = results.filterIsInstance<BuildResult .WrongItemSelection >().filter {
67- canBeOpened(startStack, it.blockPos, it.context.result.side)
68+ canBeOpened(startStack, it.blockPos, it.context.result.side) && it.blockPos.y == player.blockPos.y
6869 }
6970 (succeeds + wrongStacks).minOrNull()?.let { result ->
7071 build(
You can’t perform that action at this time.
0 commit comments