Fixed Builder to Inlucde - noModifiers

This commit is contained in:
Rosenthalk0 2022-11-08 23:39:16 -06:00
parent 8f52cd2c67
commit 1c97aac732
3 changed files with 3 additions and 3 deletions

View File

@ -196,7 +196,7 @@ public class MMOItemTemplate extends PostLoadObject implements ItemReference {
* @return Item builder with specific item level and tier * @return Item builder with specific item level and tier
*/ */
public MMOItemBuilder newBuilder(int itemLevel, @Nullable ItemTier itemTier,boolean noModifiers) { public MMOItemBuilder newBuilder(int itemLevel, @Nullable ItemTier itemTier,boolean noModifiers) {
return new MMOItemBuilder(this, itemLevel, itemTier); return new MMOItemBuilder(this, itemLevel, itemTier,noModifiers);
} }
/** /**
* @param itemLevel The desired item level * @param itemLevel The desired item level

View File

@ -112,7 +112,7 @@ public class CraftingStationPreview extends PluginInventory {
inv.setItem(16, item); inv.setItem(16, item);
} }
if (recipe.getRecipe() instanceof UpgradingRecipe) { if (recipe.getRecipe() instanceof UpgradingRecipe) {
NBTItem nbtItem = NBTItem.get(((UpgradingRecipe) recipe.getRecipe()).getItem().getPreview()); NBTItem nbtItem = NBTItem.get(((UpgradingRecipe) recipe.getRecipe()).getItem().getPreview(true));
nbtItem.setDisplayNameComponent(LegacyComponent.parse( nbtItem.setDisplayNameComponent(LegacyComponent.parse(
nbtItem.toItem().getItemMeta().getDisplayName() + ChatColor.GREEN + "+1!")); nbtItem.toItem().getItemMeta().getDisplayName() + ChatColor.GREEN + "+1!"));

View File

@ -16,7 +16,7 @@
<description>A great item solution for your RPG server!!</description> <description>A great item solution for your RPG server!!</description>
<properties> <properties>
<revision>6.8.3-SNAPSHOT</revision> <revision>6.8.4-TEST</revision>
<downloadSources>false</downloadSources> <downloadSources>false</downloadSources>
<downloadJavadocs>false</downloadJavadocs> <downloadJavadocs>false</downloadJavadocs>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>