Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
deirn committed Jun 27, 2024
1 parent 7063f40 commit 005e7b5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/mcp/mobius/waila/command/ServerCommand.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
import net.minecraft.commands.Commands;
import net.minecraft.commands.arguments.EntityArgument;
import net.minecraft.commands.arguments.coordinates.BlockPosArgument;
import net.minecraft.core.Registry;
import net.minecraft.network.FriendlyByteBuf;
import net.minecraft.network.chat.ClickEvent;
import net.minecraft.network.chat.Component;
Expand Down Expand Up @@ -84,8 +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: " + Registry.BLOCK_ENTITY_TYPE.getKey(blockEntity.getType())), false);
source.sendSuccess(Component.literal("Block entity class: " + blockEntity.getClass().getName()), false);
}

Expand Down

0 comments on commit 005e7b5

Please sign in to comment.