2019-02-25 09:39:24 +00:00
|
|
|
From 47b023d5aea541dfa645790eec0d9f951e47581f 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
|
2019-02-25 09:39:24 +00:00
|
|
|
index 082a1b6e2..2b78fff9f 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();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
--
|
2019-01-01 03:15:55 +00:00
|
|
|
2.20.1
|
2018-10-05 15:24:01 +00:00
|
|
|
|