mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-28 07:55:53 +00:00
Fix derp with custom properties. They work now!
This commit is contained in:
1 parent
bc57ff9e83
commit
8f87021b0f
1 file changed
+4
-4
@@ -498,13 +498,13 @@ public class FMLModContainer implements ModContainer
|
||||
}
|
||||
}
|
||||
|
||||
CustomProperty[] props = (CustomProperty[]) descriptor.get("customProperties");
|
||||
if (props!=null && props.length > 0)
|
||||
List<Map<String,Object>> props = (List<Map<String, Object>>) descriptor.get("customProperties");
|
||||
if (props != null)
|
||||
{
|
||||
com.google.common.collect.ImmutableMap.Builder<String, String> builder = ImmutableMap.<String,String>builder();
|
||||
for (CustomProperty p : props)
|
||||
for (Map<String, Object> p : props)
|
||||
{
|
||||
builder.put(p.k(),p.v());
|
||||
builder.put((String)p.get("k"),(String)p.get("v"));
|
||||
}
|
||||
customModProperties = builder.build();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user