mirror of
https://github.com/barkeser2002/CatServer.git
synced 2026-09-25 06:40:05 +03:00
14 lines
782 B
Diff
14 lines
782 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 createStructureBaseNBT()
|
|
{
|
|
+ if (MapGenStructureIO.getStructureComponentName(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.setString("id", MapGenStructureIO.getStructureComponentName(this));
|
|
nbttagcompound.setTag("BB", this.boundingBox.toNBTTagIntArray());
|