14 lines
757 B
Diff
14 lines
757 B
Diff
--- ../src-base/minecraft/net/minecraft/world/gen/structure/StructureComponent.java
|
|
+++ ../src-work/minecraft/net/minecraft/world/gen/structure/StructureComponent.java
|
|
@@ -41,6 +41,10 @@
|
|
|
|
public final NBTTagCompound func_143010_b()
|
|
{
|
|
+ if (MapGenStructureIO.func_143036_a(this) == null) // Friendlier error then the Null String error below.
|
|
+ {
|
|
+ throw new RuntimeException("StructureComponent \"" + this.getClass().getName() + "\" missing ID Mapping, Modder see MapGenStructureIO");
|
|
+ }
|
|
NBTTagCompound nbttagcompound = new NBTTagCompound();
|
|
nbttagcompound.func_74778_a("id", MapGenStructureIO.func_143036_a(this));
|
|
nbttagcompound.func_74782_a("BB", this.field_74887_e.func_151535_h());
|