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

23 lines
1,012 B
Diff
Raw Normal View History

2017-09-18 20:00:00 +10:00
From 13bda1bf0be57c57df345399a5f10fb258aa36d8 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
2017-09-18 20:00:00 +10:00
index 0a6e5b327..74e3f42cd 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
2017-05-14 12:00:00 +10:00
@@ -144,7 +144,7 @@ public abstract class StructureGenerator extends WorldGenBase {
2016-11-17 12:41:12 +11:00
protected void a(World world) {
2017-05-14 12:00:00 +10:00
if (this.a == null && world != null) {
2016-03-01 08:33:06 +11:00
// 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());
--
2017-04-30 09:32:32 +10:00
2.11.0
2016-03-01 08:33:06 +11:00