Skip to content

Commit

Permalink
closes #112
Browse files Browse the repository at this point in the history
  • Loading branch information
Uraneptus committed Aug 5, 2024
1 parent 810492d commit 9c28ca0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
3 changes: 1 addition & 2 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
- Updated several lang files
- Added a bunch of mod books to the default config
- Fix: Removing a book from the Tome changes its title to the raw name
6 changes: 0 additions & 6 deletions src/main/java/vazkii/akashictome/MorphingHandler.java
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 9c28ca0

Please sign in to comment.