This commit is contained in:
modmuss50 2020-03-25 19:36:02 +00:00
parent 8679c9398f
commit 11290e89e7
28 changed files with 63 additions and 53 deletions

View file

@ -117,7 +117,7 @@ public class StackToolTipHandler implements ItemTooltipCallback {
boolean hasData = false;
if (stack.hasTag() && stack.getTag().contains("blockEntity_data")) {
CompoundTag blockEntityData = stack.getTag().getCompound("blockEntity_data");
blockEntity.fromTag(blockEntityData);
blockEntity.fromTag(blockEntity.getCachedState(), blockEntityData);
hasData = true;
components.add(new LiteralText("Block data contained").formatted(Formatting.DARK_GREEN));
}