Move the Structure data save files to per-world data folders. Vanilla saves them to the global folder which will potentially cause conflicts if two worlds generate 'Villages'. Which in the modded world is highly likely. Refer back to the long standing vanilla issue where nether 'villages' would override the overworlds villages, it's the same situation.

This commit is contained in:
Lex Manos 2013-09-18 23:37:23 -07:00
parent d39c279203
commit a525cab5ff
1 changed files with 17 additions and 0 deletions

View File

@ -0,0 +1,17 @@
--- ../src_base/minecraft/net/minecraft/world/gen/structure/MapGenStructure.java
+++ ../src_work/minecraft/net/minecraft/world/gen/structure/MapGenStructure.java
@@ -234,12 +234,12 @@
{
if (this.field_143029_e == null)
{
- this.field_143029_e = (MapGenStructureData)par1World.loadItemData(MapGenStructureData.class, this.func_143025_a());
+ this.field_143029_e = (MapGenStructureData)par1World.perWorldStorage.loadData(MapGenStructureData.class, this.func_143025_a());
if (this.field_143029_e == null)
{
this.field_143029_e = new MapGenStructureData(this.func_143025_a());
- par1World.setItemData(this.func_143025_a(), this.field_143029_e);
+ par1World.perWorldStorage.setData(this.func_143025_a(), this.field_143029_e);
}
else
{