mirror of
https://gitlab.com/phoenix-dvpmt/mmoitems.git
synced 2024-12-23 04:47:34 +01:00
- Fixed Item Editor GUI not updating properly
This commit is contained in:
parent
6f77e0f666
commit
e947f64200
@ -267,6 +267,11 @@ public class ItemStackBuilder {
|
||||
return itemBuildEvent.getItemStack();
|
||||
}
|
||||
|
||||
public ItemStack displayBuild() {
|
||||
return buildNBT().toItem();
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @return Builds the item
|
||||
*/
|
||||
|
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user