If we remove a corrupt TE, ensure we save the chunk
This commit is contained in:
@@ -18,7 +18,7 @@ only send chunks which are actually ready to be sent, otherwise, we
|
|||||||
will always send chunks.
|
will always send chunks.
|
||||||
|
|
||||||
diff --git a/src/main/java/net/minecraft/server/Chunk.java b/src/main/java/net/minecraft/server/Chunk.java
|
diff --git a/src/main/java/net/minecraft/server/Chunk.java b/src/main/java/net/minecraft/server/Chunk.java
|
||||||
index d1066d82e..b3ee62a4e 100644
|
index aecfa331d..7cd537a59 100644
|
||||||
--- a/src/main/java/net/minecraft/server/Chunk.java
|
--- a/src/main/java/net/minecraft/server/Chunk.java
|
||||||
+++ b/src/main/java/net/minecraft/server/Chunk.java
|
+++ b/src/main/java/net/minecraft/server/Chunk.java
|
||||||
@@ -0,0 +0,0 @@ public class Chunk {
|
@@ -0,0 +0,0 @@ public class Chunk {
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ Subject: [PATCH] Option to remove corrupt tile entities
|
|||||||
|
|
||||||
|
|
||||||
diff --git a/src/main/java/com/destroystokyo/paper/PaperWorldConfig.java b/src/main/java/com/destroystokyo/paper/PaperWorldConfig.java
|
diff --git a/src/main/java/com/destroystokyo/paper/PaperWorldConfig.java b/src/main/java/com/destroystokyo/paper/PaperWorldConfig.java
|
||||||
index f3c0bbde..f30e36f3 100644
|
index ce848d63e..93b0af036 100644
|
||||||
--- a/src/main/java/com/destroystokyo/paper/PaperWorldConfig.java
|
--- a/src/main/java/com/destroystokyo/paper/PaperWorldConfig.java
|
||||||
+++ b/src/main/java/com/destroystokyo/paper/PaperWorldConfig.java
|
+++ b/src/main/java/com/destroystokyo/paper/PaperWorldConfig.java
|
||||||
@@ -0,0 +0,0 @@ public class PaperWorldConfig {
|
@@ -0,0 +0,0 @@ public class PaperWorldConfig {
|
||||||
@@ -19,7 +19,7 @@ index f3c0bbde..f30e36f3 100644
|
|||||||
+ }
|
+ }
|
||||||
}
|
}
|
||||||
diff --git a/src/main/java/net/minecraft/server/Chunk.java b/src/main/java/net/minecraft/server/Chunk.java
|
diff --git a/src/main/java/net/minecraft/server/Chunk.java b/src/main/java/net/minecraft/server/Chunk.java
|
||||||
index 87730aec..1d056031 100644
|
index 87730aec3..ce76a0e5d 100644
|
||||||
--- a/src/main/java/net/minecraft/server/Chunk.java
|
--- a/src/main/java/net/minecraft/server/Chunk.java
|
||||||
+++ b/src/main/java/net/minecraft/server/Chunk.java
|
+++ b/src/main/java/net/minecraft/server/Chunk.java
|
||||||
@@ -0,0 +0,0 @@ public class Chunk {
|
@@ -0,0 +0,0 @@ public class Chunk {
|
||||||
@@ -29,6 +29,7 @@ index 87730aec..1d056031 100644
|
|||||||
+
|
+
|
||||||
+ if (this.world.paperConfig.removeCorruptTEs) {
|
+ if (this.world.paperConfig.removeCorruptTEs) {
|
||||||
+ this.removeTileEntity(tileentity.getPosition());
|
+ this.removeTileEntity(tileentity.getPosition());
|
||||||
|
+ this.markDirty();
|
||||||
+ org.bukkit.Bukkit.getLogger().info("Removing corrupt tile entity");
|
+ org.bukkit.Bukkit.getLogger().info("Removing corrupt tile entity");
|
||||||
+ }
|
+ }
|
||||||
// Paper end
|
// Paper end
|
||||||
|
|||||||
Reference in New Issue
Block a user