Don't let it manually re-register a map file

This commit is contained in:
md_5 2013-09-21 12:58:36 +10:00
parent e116075866
commit b097614299

View file

@ -1,14 +1,14 @@
From 6aa4aae7c4df947c6495129a665462324da1f45e Mon Sep 17 00:00:00 2001
From 79440ab42fc945d2efec96be6ec3bb7667c18e71 Mon Sep 17 00:00:00 2001
From: md_5 <md_5@live.com.au>
Date: Sat, 21 Sep 2013 12:33:09 +1000
Subject: [PATCH] Allow Disabling of 1.6.3 Structure Saving
diff --git a/src/main/java/net/minecraft/server/StructureGenerator.java b/src/main/java/net/minecraft/server/StructureGenerator.java
index ab4dc19..8fe8c13 100644
index ab4dc19..cb8ff49 100644
--- a/src/main/java/net/minecraft/server/StructureGenerator.java
+++ b/src/main/java/net/minecraft/server/StructureGenerator.java
@@ -178,7 +178,12 @@ public abstract class StructureGenerator extends WorldGenBase {
@@ -178,7 +178,15 @@ public abstract class StructureGenerator extends WorldGenBase {
private void a(World world) {
if (this.e == null) {
@ -17,6 +17,9 @@ index ab4dc19..8fe8c13 100644
+ if ( world.spigotConfig.saveStructureInfo )
+ {
+ this.e = (WorldGenFeature) world.a( WorldGenFeature.class, this.a() );
+ } else
+ {
+ this.e = new WorldGenFeature( this.a() );
+ }
+ // Spigot End
if (this.e == null) {