Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
(cherry picked from commit 005e7b5)
  • Loading branch information
deirn committed Jun 27, 2024
1 parent 3ba8edf commit 37ddafd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/mcp/mobius/waila/command/ServerCommand.java
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ protected void register(ArgumentBuilderBuilder<CommandSourceStack> command) {
var blockEntity = world.getBlockEntity(pos);
if (blockEntity != null) {
//noinspection DataFlowIssue
source.sendSuccess(() -> Component.literal("Block entity type ID: " + blockEntity.getType().builtInRegistryHolder().key().location()), false);
source.sendSuccess(() -> Component.literal("Block entity type ID: " + BuiltInRegistries.BLOCK_ENTITY_TYPE.getKey(blockEntity.getType())), false);
source.sendSuccess(() -> Component.literal("Block entity class: " + blockEntity.getClass().getName()), false);
}

Expand Down

0 comments on commit 37ddafd

Please sign in to comment.