Yatopia/patches/server/0029-EMC-Default-don-t-use-blockstate-snapshots.patch
2020-05-07 16:59:29 +02:00

26 lines
1.0 KiB
Diff

From eaac0ed4866c7943e2c0dab6c9c5656efb6fafa0 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 01c524cc01..83a2a87505 100644
--- a/src/main/java/org/bukkit/craftbukkit/block/CraftBlock.java
+++ b/src/main/java/org/bukkit/craftbukkit/block/CraftBlock.java
@@ -309,7 +309,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