testserver/CraftBukkit-Patches/0058-Prevent-Mineshaft-Savi...

23 lines
936 B
Diff
Raw Normal View History

2015-05-25 12:05:40 +00:00
From 8aee9e77f8557e093deb7e6632ecc4dd8627a4c9 Mon Sep 17 00:00:00 2001
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
2015-02-28 11:36:22 +00:00
index bb1a11e..0f8211a 100644
--- a/src/main/java/net/minecraft/server/StructureGenerator.java
+++ b/src/main/java/net/minecraft/server/StructureGenerator.java
2015-02-28 11:36:22 +00:00
@@ -196,7 +196,7 @@ public abstract class StructureGenerator extends WorldGenBase {
private void a(World world) {
2014-11-28 01:17:45 +00:00
if (this.d == null) {
// Spigot Start
- if ( world.spigotConfig.saveStructureInfo )
+ if ( world.spigotConfig.saveStructureInfo && !this.a().equals( "Mineshaft" ) )
{
2014-11-28 01:17:45 +00:00
this.d = (PersistentStructure) world.a(PersistentStructure.class, this.a());
} else
--
2015-05-09 20:23:26 +00:00
2.1.4