minor cleanup

This commit is contained in:
mezz committed 2015-11-22 10:10:09 -08:00
1 parent db5daf9e3d
commit b4c0777f1c
15 files changed
+40 -44

No files matched your search

+4 -4
View File
@@ -145,10 +145,10 @@ public class Forestry {
Log.warning("Remapping block " + mapping.name + " to " + StringUtil.cleanBlockName(block));
}
} else {
Block block = GameRegistry.findBlock(Constants.MOD, StringUtil.cleanTags(mapping.name));
if (block != null) {
mapping.remap(Item.getItemFromBlock(block));
Log.warning("Remapping item " + mapping.name + " to " + StringUtil.cleanBlockName(block));
Item item = GameRegistry.findItem(Constants.MOD, StringUtil.cleanTags(mapping.name));
if (item != null) {
mapping.remap(item);
Log.warning("Remapping item " + mapping.name + " to " + StringUtil.cleanItemName(item));
}
}
}