mirror of
https://github.com/GTNewHorizons/CraftTweaker.git
synced 2026-11-19 11:49:05 +00:00
- Fixed spaces in item names (Note: they are now ignored: <Natura:Rare Leaves> and <Natura:RareLeaves> are considered the same)
- Fixed block info command in 1.6.4 and 1.7.2
This commit is contained in:
1 parent
dfceec1fd4
commit
c67ad22270
10 files changed
+118
-24
No files matched your search
@@ -89,11 +89,13 @@ public class MineTweakerImplementationAPI {
|
||||
|
||||
try {
|
||||
displayName = " -- " + item.makeStack(0).getDisplayName();
|
||||
} catch (Exception ex) {
|
||||
} catch (Throwable ex) {
|
||||
// some mods (such as buildcraft) may throw exceptions when calling
|
||||
// getDisplayName on an item stack that doesn't contain valid NBT data
|
||||
// also seems to cause errors in some other cases too
|
||||
displayName = " -- Name could not be retrieved due to an error: " + ex;
|
||||
}
|
||||
|
||||
|
||||
MineTweakerAPI.logCommand("<" + item.getId() + ">" + displayName);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user