mirror of
https://gitlab.com/phoenix-dvpmt/mmoitems.git
synced 2025-01-07 07:17:42 +01:00
Fixed Builder to Inlucde - noModifiers
This commit is contained in:
parent
8f52cd2c67
commit
1c97aac732
@ -196,7 +196,7 @@ public class MMOItemTemplate extends PostLoadObject implements ItemReference {
|
||||
* @return Item builder with specific item level and tier
|
||||
*/
|
||||
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
|
||||
|
@ -112,7 +112,7 @@ public class CraftingStationPreview extends PluginInventory {
|
||||
inv.setItem(16, item);
|
||||
}
|
||||
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.toItem().getItemMeta().getDisplayName() + ChatColor.GREEN + "+1!"));
|
||||
|
||||
|
2
pom.xml
2
pom.xml
@ -16,7 +16,7 @@
|
||||
<description>A great item solution for your RPG server!!</description>
|
||||
|
||||
<properties>
|
||||
<revision>6.8.3-SNAPSHOT</revision>
|
||||
<revision>6.8.4-TEST</revision>
|
||||
<downloadSources>false</downloadSources>
|
||||
<downloadJavadocs>false</downloadJavadocs>
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
|
Loading…
Reference in New Issue
Block a user