mirror of
https://gitlab.com/phoenix-dvpmt/mmoitems.git
synced 2025-01-08 07:27:39 +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
|
* @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
|
||||||
|
@ -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!"));
|
||||||
|
|
||||||
|
2
pom.xml
2
pom.xml
@ -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>
|
||||||
|
Loading…
Reference in New Issue
Block a user