-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Description
In StructureStart.func_143020_a:
this.components.add(MapGenStructureIO.func_143032_b(nbttaglist.getCompoundTagAt(i), p_143020_1_));
func_143032_b will return null if a component id doesn't reference anything anymore, presumably due to the mod originally providing it no longer exististing or having removed that feature. This will end up with null entries in the components list, causing NPEs in various other methods not expecting null entries.
See http://forum.industrial-craft.net/index.php?page=Thread&postID=179881#post179881 for an example list containing several null entries. It'll then crash in generateStructure().
I propose altering func_143020_a to silently skip components without valid IDs, i.e. not adding to the components list if func_143032_b returned null. Minecraft should already log that they were missing.
The issue is persistently world corrupting, fixing it in 1.7 is quite important.