fixed save killing change, awaiting further fix
This commit is contained in:
parent
d5caa918c8
commit
e847794e8d
4 changed files with 6 additions and 3 deletions
|
@ -26,6 +26,7 @@ public class DimData implements Serializable
|
|||
public boolean hasDoor=false;
|
||||
public boolean isDimRandomRift=false;
|
||||
public DungeonGenerator dungeonGenerator = null;
|
||||
public boolean hasMarks=false;
|
||||
//public boolean isPrivatePocket = false;
|
||||
public HashMap<Integer, HashMap<Integer, HashMap<Integer, LinkData>>> linksInThisDim=new HashMap();
|
||||
HashMap<Integer, LinkData> dimX;
|
||||
|
|
|
@ -15,11 +15,13 @@ public class DungeonGenerator implements Serializable
|
|||
public LinkData exitLink;
|
||||
public static Random rand = new Random();
|
||||
public boolean isOpen;
|
||||
public boolean hasMarks=false;
|
||||
|
||||
public int sideDoorsSoFar=0;
|
||||
public int exitDoorsSoFar=0;
|
||||
public int deadEndsSoFar=0;
|
||||
|
||||
|
||||
|
||||
public DungeonGenerator(int weight, String schematicPath, Boolean isOpen)
|
||||
{
|
||||
this.weight=weight;
|
||||
|
|
|
@ -1140,7 +1140,7 @@ public class SchematicLoader
|
|||
Entity mob = new MobObelisk(world);
|
||||
mob.setLocationAndAngles(point.getX(),point.getY(), point.getZ(), 1, 1);
|
||||
world.spawnEntityInWorld(mob);
|
||||
dimHelper.dimList.get(link.destDimID).dungeonGenerator.hasMarks=true;
|
||||
dimHelper.dimList.get(link.destDimID).hasMarks=true;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -68,7 +68,7 @@ public class PocketGenerator extends ChunkProviderGenerate implements IChunkProv
|
|||
if (dimData == null ||
|
||||
dimData.dungeonGenerator == null ||
|
||||
dimData.dungeonGenerator.isOpen||
|
||||
dimData.dungeonGenerator.hasMarks)
|
||||
dimData.hasMarks)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue