File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed
v1_21_1/src/main/java/net/azisaba/loreeditor/v1_21_1/item Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ plugins {
88
99allprojects {
1010 group = " net.azisaba.loreeditor"
11- version = " 1.2.1 "
11+ version = " 1.2.2 "
1212
1313 apply {
1414 plugin(" java" )
Original file line number Diff line number Diff line change @@ -87,6 +87,7 @@ public void setTag(@Nullable CompoundTag tag) {
8787 handle .set (DataComponents .CUSTOM_DATA , tag == null ? null : CustomData .of (((CompoundTagImpl ) tag ).getHandle ()));
8888 if (tag != null ) {
8989 if (!tag .hasKeyOfType ("display" , 10 )) {
90+ handle .remove (DataComponents .LORE );
9091 return ;
9192 }
9293 CompoundTag displayTag = tag .getCompound ("display" );
@@ -102,6 +103,8 @@ public void setTag(@Nullable CompoundTag tag) {
102103 } else {
103104 handle .remove (DataComponents .LORE );
104105 }
106+ } else {
107+ handle .remove (DataComponents .LORE );
105108 }
106109 }
107110
You can’t perform that action at this time.
0 commit comments