Skip to content

Commit

Permalink
Fix the itembuilder
Browse files Browse the repository at this point in the history
  • Loading branch information
ryderbelserion committed Apr 25, 2024
1 parent d6c8510 commit 1b59e45
Showing 1 changed file with 2 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import com.badbones69.crazycrates.CrazyCrates;
import com.badbones69.crazycrates.api.enums.PersistentKeys;
import com.badbones69.crazycrates.api.utils.MiscUtils;
import com.badbones69.crazycrates.api.utils.MsgUtils;
import com.badbones69.crazycrates.support.SkullCreator;
import com.mojang.brigadier.exceptions.CommandSyntaxException;
import com.ryderbelserion.vital.enums.Support;
Expand Down Expand Up @@ -240,13 +239,7 @@ public ItemBuilder(ItemStack itemStack) {
case ENCHANTED_BOOK -> this.isBook = true;
}

/*this.itemStack.editMeta(itemMeta -> {
if (itemMeta.hasDisplayName()) this.displayName = itemMeta.getDisplayName();
if (itemMeta.hasLore()) this.displayLore = itemMeta.getLore();
});*/

String name = this.material.name();
String name = this.material.getKey().getKey();

this.isArmor = name.endsWith("_helmet") || name.endsWith("_chestplate") || name.endsWith("_leggings") || name.endsWith("_boots");

Expand All @@ -273,13 +266,7 @@ public ItemBuilder(ItemStack itemStack, Player target) {
case ENCHANTED_BOOK -> this.isBook = true;
}

/*this.itemStack.editMeta(itemMeta -> {
if (itemMeta.hasDisplayName()) this.displayName = itemMeta.getDisplayName();
if (itemMeta.hasLore()) this.displayLore = itemMeta.getLore();
});*/

String name = this.material.name();
String name = this.material.getKey().getKey();

this.isArmor = name.endsWith("_helmet") || name.endsWith("_chestplate") || name.endsWith("_leggings") || name.endsWith("_boots");

Expand Down

0 comments on commit 1b59e45

Please sign in to comment.