Skip to content

Commit

Permalink
Try to avoid blocks that can't be used for portal frame
Browse files Browse the repository at this point in the history
  • Loading branch information
Unreal852 committed Aug 6, 2024
1 parent 7b97ce1 commit 9ff33df
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ class BlocksSuggestionProvider : SuggestionProvider<ServerCommandSource> {
for (block in Registries.BLOCK) {
val blockState = block.defaultState

if(blockState.isOpaque)
continue

if (block != Blocks.AIR) {
builder.suggest(Registries.BLOCK.getEntry(block).idAsString)
}
Expand Down

0 comments on commit 9ff33df

Please sign in to comment.