Skip to content

Commit

Permalink
Removed debug message and ItemUtils.java is finally fully fixed ! 🎉
Browse files Browse the repository at this point in the history
  • Loading branch information
tbvns committed Jan 21, 2024
1 parent e3be418 commit b4aa97a
Showing 1 changed file with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ public class ItemUtils {
public static boolean isModed(ItemStack itemStack) {
if (itemStack.hasItemMeta()) {
ItemMeta itemMeta = itemStack.getItemMeta();
System.out.println(itemMeta.getCustomModelData());
if (itemMeta.getCustomModelData() != 0) {
return true;
}
Expand All @@ -28,7 +27,6 @@ public static ModdedItem getModedItem(ItemStack itemStack) {
if (itemMeta.getCustomModelData() != 0) {
for (int i = 0; i < Constant.Items.size(); i++) {
ModdedItem item = Constant.Items.get(i);
System.out.println(Constant.Items.get(i).getId());
if (itemMeta.getCustomModelData() - 1 == item.getId() && itemStack.getType() == item.ItemMaterial) {
return item;
}
Expand All @@ -48,7 +46,6 @@ public static ModdedBlock getModedBlockFromItem(ItemStack itemStack) {
if (itemMeta.getCustomModelData() != 0) {
for (int i = 0; i < Constant.Blocks.size(); i++) {
ModdedBlock moddedBlock = Constant.Blocks.get(i);
System.out.println(Constant.Blocks.get(i).getId());
if (itemMeta.getCustomModelData() - 1 == moddedBlock.getId()) {
return moddedBlock;
}
Expand Down

0 comments on commit b4aa97a

Please sign in to comment.