Fix other issue with lore duplicating

This commit is contained in:
Ryder Belserion 2024-03-24 11:24:15 -04:00
parent f79a2eed10
commit b8e5d2dd7a
No known key found for this signature in database
2 changed files with 7 additions and 3 deletions

View File

@ -1,5 +1,5 @@
#Minecraft server properties
#Sun Mar 24 11:22:10 EDT 2024
#Sun Mar 24 11:23:50 EDT 2024
enable-jmx-monitoring=false
rcon.port=25575
level-seed=

View File

@ -76,7 +76,9 @@ public class GuiListener implements Listener {
ItemBuilder itemBuilder = ItemBuilder.convertItemStack(data.getItemStack("Items." + i + ".Item"));
lore.forEach(itemBuilder::addLore);
if (itemBuilder.getUpdatedLore().isEmpty()) {
lore.forEach(itemBuilder::addLore);
}
items.add(itemBuilder.build());
@ -90,7 +92,9 @@ public class GuiListener implements Listener {
ItemBuilder itemBuilder = ItemBuilder.convertItemStack(data.getItemStack("Items." + i + ".Item"));
lore.forEach(itemBuilder::addLore);
if (itemBuilder.getUpdatedLore().isEmpty()) {
lore.forEach(itemBuilder::addLore);
}
items.add(itemBuilder.build());