mirror of
https://github.com/Crazy-Crew/CrazyAuctions.git
synced 2024-11-25 12:25:20 +01:00
Fix other issue with lore duplicating
This commit is contained in:
parent
f79a2eed10
commit
b8e5d2dd7a
@ -1,5 +1,5 @@
|
|||||||
#Minecraft server properties
|
#Minecraft server properties
|
||||||
#Sun Mar 24 11:22:10 EDT 2024
|
#Sun Mar 24 11:23:50 EDT 2024
|
||||||
enable-jmx-monitoring=false
|
enable-jmx-monitoring=false
|
||||||
rcon.port=25575
|
rcon.port=25575
|
||||||
level-seed=
|
level-seed=
|
||||||
|
@ -76,7 +76,9 @@ public class GuiListener implements Listener {
|
|||||||
|
|
||||||
ItemBuilder itemBuilder = ItemBuilder.convertItemStack(data.getItemStack("Items." + i + ".Item"));
|
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());
|
items.add(itemBuilder.build());
|
||||||
|
|
||||||
@ -90,7 +92,9 @@ public class GuiListener implements Listener {
|
|||||||
|
|
||||||
ItemBuilder itemBuilder = ItemBuilder.convertItemStack(data.getItemStack("Items." + i + ".Item"));
|
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());
|
items.add(itemBuilder.build());
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user