diff --git a/changelog.txt b/changelog.txt index 0eb3b0e..bbc4039 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,2 +1 @@ -- Updated several lang files -- Added a bunch of mod books to the default config \ No newline at end of file +- Fix: Removing a book from the Tome changes its title to the raw name \ No newline at end of file diff --git a/src/main/java/vazkii/akashictome/MorphingHandler.java b/src/main/java/vazkii/akashictome/MorphingHandler.java index 143d3c8..6ead2d0 100644 --- a/src/main/java/vazkii/akashictome/MorphingHandler.java +++ b/src/main/java/vazkii/akashictome/MorphingHandler.java @@ -69,12 +69,6 @@ public void onItemDropped(ItemTossEvent event) { } copyCmp.remove("display"); - Component displayName = null; - CompoundTag nameCmp = (CompoundTag) copyCmp.get(TAG_TOME_DISPLAY_NAME); - if (nameCmp != null) - displayName = Component.literal(nameCmp.getString("text")); - if (displayName != null && !displayName.getString().isEmpty() && displayName != copy.getHoverName()) - copy.setHoverName(displayName); copyCmp.remove(TAG_MORPHING); copyCmp.remove(TAG_TOME_DISPLAY_NAME);