diff --git a/build.gradle b/build.gradle index 4039038..30b9a4f 100644 --- a/build.gradle +++ b/build.gradle @@ -4,7 +4,7 @@ plugins { id 'net.minecraftforge.gradle' version '5.1.+' } -version = '1.0' +version = '1.0.1' group = 'dev.zontreck.mcmods' // http://maven.apache.org/guides/mini/guide-naming-conventions.html archivesBaseName = 'WatchMyDurability' diff --git a/src/main/java/dev/zontreck/mcmods/ItemRegistry.java b/src/main/java/dev/zontreck/mcmods/ItemRegistry.java index dc47cd4..1c477cd 100644 --- a/src/main/java/dev/zontreck/mcmods/ItemRegistry.java +++ b/src/main/java/dev/zontreck/mcmods/ItemRegistry.java @@ -62,17 +62,17 @@ public class ItemRegistry { public static boolean contains(String type, Integer slot, Item getNewItem) { ItemRegistry reg = WatchMyDurability.REGISTRY; if(reg.CachedItems.containsKey(type)){ - WatchMyDurability.LOGGER.debug("Registry contains "+type); + //WatchMyDurability.LOGGER.debug("Registry contains "+type); Map items = reg.CachedItems.get(type); if(items.containsKey(slot)){ - WatchMyDurability.LOGGER.debug("ItemRegistry contains slot: "+slot); + //WatchMyDurability.LOGGER.debug("ItemRegistry contains slot: "+slot); Item x = items.get(slot); if(x.Compare(getNewItem)){ - WatchMyDurability.LOGGER.debug("Items are identical!"); + //WatchMyDurability.LOGGER.debug("Items are identical!"); // Items are identical return true; }else { - WatchMyDurability.LOGGER.debug("ITEMS ARE NOT IDENTICAL"); + //WatchMyDurability.LOGGER.debug("ITEMS ARE NOT IDENTICAL"); return false; } }else return false;