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

23 lines
1 KiB
Diff
Raw Normal View History

2016-05-10 21:48:25 +10:00
From e26887c54971b566a56ba148c90c4045a846397e 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-05-10 21:48:25 +10:00
index d57f43e..4b4cf89 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