Yatopia/patches/server/0029-EMC-Default-don-t-use-blockstate-snapshots.patch
2020-02-26 20:12:29 +01:00

26 lines
1.0 KiB
Diff

From 3fcbcebdd8d404a184c0e949ef7c7904230fc08a Mon Sep 17 00:00:00 2001
From: Aikar <aikar@aikar.co>
Date: Thu, 28 Jun 2018 22:13:44 -0400
Subject: [PATCH] EMC Default don't use blockstate snapshots
---
src/main/java/org/bukkit/craftbukkit/block/CraftBlock.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/main/java/org/bukkit/craftbukkit/block/CraftBlock.java b/src/main/java/org/bukkit/craftbukkit/block/CraftBlock.java
index 78e84c3d..849f51fc 100644
--- a/src/main/java/org/bukkit/craftbukkit/block/CraftBlock.java
+++ b/src/main/java/org/bukkit/craftbukkit/block/CraftBlock.java
@@ -310,7 +310,7 @@ public class CraftBlock implements Block {
@Override
public BlockState getState() {
// Paper start - allow disabling the use of snapshots
- return getState(true);
+ return getState(false); // EMC - default to not use snapshots
}
public BlockState getState(boolean useSnapshot) {
boolean prev = CraftBlockEntityState.DISABLE_SNAPSHOT;
--
2.25.1.windows.1