- Fixed Item Editor GUI not updating properly

This commit is contained in:
Dancull47 2021-10-19 18:01:36 -04:00
parent 6f77e0f666
commit e947f64200
2 changed files with 6 additions and 1 deletions

View File

@ -267,6 +267,11 @@ public class ItemStackBuilder {
return itemBuildEvent.getItemStack();
}
public ItemStack displayBuild() {
return buildNBT().toItem();
}
/**
* @return Builds the item
*/

View File

@ -121,7 +121,7 @@ public abstract class EditionInventory extends PluginInventory {
* can reroll the stats.
*/
public void updateCachedItem() {
cachedItem = template.newBuilder(PlayerData.get(getPlayer()).getRPG()).build().newBuilder().build();
cachedItem = template.newBuilder(PlayerData.get(getPlayer()).getRPG()).build().newBuilder().displayBuild();
}
public ItemStack getCachedItem() {