spigot/CraftBukkit-Patches/0049-Prevent-Mineshaft-Saving.patch

23 lines
1 KiB
Diff
Raw Normal View History

From 97d58a35d8330a2a8c4a3bdd5cacf959ddbb3c46 Mon Sep 17 00:00:00 2001
2016-03-01 08:33:06 +11:00
From: md_5 <git@md-5.net>
Date: Fri, 13 Dec 2013 15:21:02 +1100
Subject: [PATCH] Prevent Mineshaft Saving
diff --git a/src/main/java/net/minecraft/server/StructureGenerator.java b/src/main/java/net/minecraft/server/StructureGenerator.java
2016-06-09 11:43:56 +10:00
index 778d671..8dd434c 100644
2016-03-01 08:33:06 +11:00
--- a/src/main/java/net/minecraft/server/StructureGenerator.java
+++ b/src/main/java/net/minecraft/server/StructureGenerator.java
2016-05-10 21:48:25 +10:00
@@ -197,7 +197,7 @@ public abstract class StructureGenerator extends WorldGenBase {
2016-05-07 16:38:15 +10:00
protected synchronized void a(World world) { // CraftBukkit - synchronized
2016-03-01 08:33:06 +11:00
if (this.a == null) {
// Spigot Start
- if (world.spigotConfig.saveStructureInfo) {
+ if (world.spigotConfig.saveStructureInfo && !this.a().equals( "Mineshaft" )) {
this.a = (PersistentStructure) world.a(PersistentStructure.class, this.a());
} else {
this.a = new PersistentStructure(this.a());
--
2016-05-07 16:38:15 +10:00
2.7.4
2016-03-01 08:33:06 +11:00