2018-12-15 01:17:27 +00:00
|
|
|
From 9b9f06d80de2155ed714b5fa9a4bd4711fc4b28f Mon Sep 17 00:00:00 2001
|
2018-10-05 15:24:01 +00:00
|
|
|
From: Matthew Miller <mnmiller1@me.com>
|
|
|
|
Date: Fri, 5 Oct 2018 15:46:46 +1000
|
|
|
|
Subject: [PATCH] Don't update snapshot blockstates
|
|
|
|
|
|
|
|
|
|
|
|
diff --git a/src/main/java/org/bukkit/craftbukkit/block/CraftBlockEntityState.java b/src/main/java/org/bukkit/craftbukkit/block/CraftBlockEntityState.java
|
2018-12-02 23:31:09 +00:00
|
|
|
index d4d9c5fc5..f5c6dbd85 100644
|
2018-10-05 15:24:01 +00:00
|
|
|
--- a/src/main/java/org/bukkit/craftbukkit/block/CraftBlockEntityState.java
|
|
|
|
+++ b/src/main/java/org/bukkit/craftbukkit/block/CraftBlockEntityState.java
|
|
|
|
@@ -131,7 +131,11 @@ public class CraftBlockEntityState<T extends TileEntity> extends CraftBlockState
|
|
|
|
TileEntity tile = getTileEntityFromWorld();
|
|
|
|
|
|
|
|
if (isApplicable(tile)) {
|
|
|
|
- applyTo(tileEntityClass.cast(tile));
|
|
|
|
+ // Paper start
|
|
|
|
+ if (!snapshotDisabled) {
|
|
|
|
+ applyTo(tileEntityClass.cast(tile));
|
|
|
|
+ }
|
|
|
|
+ // Paper end
|
|
|
|
tile.update();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
--
|
2018-12-15 01:17:27 +00:00
|
|
|
2.20.0
|
2018-10-05 15:24:01 +00:00
|
|
|
|