Skip to content
This repository has been archived by the owner on Mar 10, 2021. It is now read-only.

Commit

Permalink
Log an additional error if the harvestlevel of a tool couldn't be cha…
Browse files Browse the repository at this point in the history
…nged (because the tool doesn't support it)
  • Loading branch information
bonii-xx committed Jan 1, 2015
1 parent 96cce32 commit d96aac3
Showing 1 changed file with 4 additions and 0 deletions.
Expand Up @@ -188,6 +188,10 @@ public static void updateToolHarvestLevel(Item item, String toolClass, int hlvl)
}
clazz = clazz.getSuperclass();
}

// check if the setting was successful
if(item.getHarvestLevel(null, toolClass) != hlvl)
Log.error("Could not set harvestlevel of " + item.getUnlocalizedName() + ". Contact the Mod Author to properly support Item.setHarvestLevel().");
}

// todo: expose this to config. But I'm too lazy for such a minor thing. Just call me to add another string...
Expand Down

0 comments on commit d96aac3

Please sign in to comment.