From 25c367f9dbf89a25882fac4306684134d7dfa8ec Mon Sep 17 00:00:00 2001 From: Christian Date: Mon, 17 Dec 2012 10:29:54 -0500 Subject: [PATCH] Fix up handling null names. *sigh* --- fml/common/cpw/mods/fml/common/registry/ItemData.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/fml/common/cpw/mods/fml/common/registry/ItemData.java b/fml/common/cpw/mods/fml/common/registry/ItemData.java index cc73b2866..f17399227 100644 --- a/fml/common/cpw/mods/fml/common/registry/ItemData.java +++ b/fml/common/cpw/mods/fml/common/registry/ItemData.java @@ -132,6 +132,12 @@ public class ItemData { public void setName(String name, String modId) { + if (name == null) + { + this.forcedName = null; + this.forcedModId = null; + return; + } String localModId = modId; if (modId == null) {