mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-05 10:20:53 +01:00
19972e09b8
5a0150f586ed3eb15fe6f1f596d1a5a7d806f0f9 Fix ITEM_BREAK e6a3911057bd94d8bd7021cbb4923fb84fb106d1 Upstream merge d1cdcf8d4c3639f956474f02ed662517cffbe23e Remove old patch 068df64aeee368377e1673667bffc7a6dcf90554 Rebuild all patches
51 lines
2.2 KiB
Diff
51 lines
2.2 KiB
Diff
From e24ed94388631dd27adbceae9f42beef808fee1f 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 49b7aa1..ecab5d1 100644
|
|
--- a/src/main/java/net/minecraft/server/StructureGenerator.java
|
|
+++ b/src/main/java/net/minecraft/server/StructureGenerator.java
|
|
@@ -171,7 +171,15 @@ public abstract class StructureGenerator extends WorldGenBase {
|
|
|
|
private void a(World world) {
|
|
if (this.d == null) {
|
|
+ // Spigot Start
|
|
+ if ( world.spigotConfig.saveStructureInfo )
|
|
+ {
|
|
this.d = (PersistentStructure) world.a(PersistentStructure.class, this.a());
|
|
+ } else
|
|
+ {
|
|
+ this.d = new PersistentStructure( this.a() );
|
|
+ }
|
|
+ // Spigot End
|
|
if (this.d == null) {
|
|
this.d = new PersistentStructure(this.a());
|
|
world.a(this.a(), (PersistentBase) this.d);
|
|
diff --git a/src/main/java/org/spigotmc/SpigotWorldConfig.java b/src/main/java/org/spigotmc/SpigotWorldConfig.java
|
|
index 8868ea3..48ae475 100644
|
|
--- a/src/main/java/org/spigotmc/SpigotWorldConfig.java
|
|
+++ b/src/main/java/org/spigotmc/SpigotWorldConfig.java
|
|
@@ -186,4 +186,16 @@ public class SpigotWorldConfig
|
|
randomLightUpdates = getBoolean( "random-light-updates", false );
|
|
log( "Random Lighting Updates: " + randomLightUpdates );
|
|
}
|
|
+
|
|
+ public boolean saveStructureInfo;
|
|
+ private void structureInfo()
|
|
+ {
|
|
+ saveStructureInfo = getBoolean( "save-structure-info", true );
|
|
+ log( "Structure Info Saving: " + saveStructureInfo );
|
|
+ if ( !saveStructureInfo )
|
|
+ {
|
|
+ log( "*** WARNING *** You have selected to NOT save structure info. This may cause structures such as fortresses to not spawn mobs when updating to 1.7!" );
|
|
+ log( "*** WARNING *** Please use this option with caution, SpigotMC is not responsible for any issues this option may cause in the future!" );
|
|
+ }
|
|
+ }
|
|
}
|
|
--
|
|
2.1.0
|
|
|