1.0.1
Remove some debug that got left in by mistake
This commit is contained in:
parent
86714db360
commit
873fafbccb
2 changed files with 5 additions and 5 deletions
|
@ -4,7 +4,7 @@ plugins {
|
||||||
id 'net.minecraftforge.gradle' version '5.1.+'
|
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
|
group = 'dev.zontreck.mcmods' // http://maven.apache.org/guides/mini/guide-naming-conventions.html
|
||||||
archivesBaseName = 'WatchMyDurability'
|
archivesBaseName = 'WatchMyDurability'
|
||||||
|
|
||||||
|
|
|
@ -62,17 +62,17 @@ public class ItemRegistry {
|
||||||
public static boolean contains(String type, Integer slot, Item getNewItem) {
|
public static boolean contains(String type, Integer slot, Item getNewItem) {
|
||||||
ItemRegistry reg = WatchMyDurability.REGISTRY;
|
ItemRegistry reg = WatchMyDurability.REGISTRY;
|
||||||
if(reg.CachedItems.containsKey(type)){
|
if(reg.CachedItems.containsKey(type)){
|
||||||
WatchMyDurability.LOGGER.debug("Registry contains "+type);
|
//WatchMyDurability.LOGGER.debug("Registry contains "+type);
|
||||||
Map<Integer,Item> items = reg.CachedItems.get(type);
|
Map<Integer,Item> items = reg.CachedItems.get(type);
|
||||||
if(items.containsKey(slot)){
|
if(items.containsKey(slot)){
|
||||||
WatchMyDurability.LOGGER.debug("ItemRegistry contains slot: "+slot);
|
//WatchMyDurability.LOGGER.debug("ItemRegistry contains slot: "+slot);
|
||||||
Item x = items.get(slot);
|
Item x = items.get(slot);
|
||||||
if(x.Compare(getNewItem)){
|
if(x.Compare(getNewItem)){
|
||||||
WatchMyDurability.LOGGER.debug("Items are identical!");
|
//WatchMyDurability.LOGGER.debug("Items are identical!");
|
||||||
// Items are identical
|
// Items are identical
|
||||||
return true;
|
return true;
|
||||||
}else {
|
}else {
|
||||||
WatchMyDurability.LOGGER.debug("ITEMS ARE NOT IDENTICAL");
|
//WatchMyDurability.LOGGER.debug("ITEMS ARE NOT IDENTICAL");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}else return false;
|
}else return false;
|
||||||
|
|
Reference in a new issue