Yatopia/patches/server/0025-EMC-Don-t-use-snapshots-for-TileEntity-getOwner.patch

26 lines
970 B
Diff
Raw Normal View History

2020-02-26 20:12:29 +01:00
From fb8436bfb388c5aedd3454ad8215eac81ae00816 Mon Sep 17 00:00:00 2001
From: Aikar <aikar@aikar.co>
Date: Tue, 7 Nov 2017 00:01:04 -0500
Subject: [PATCH] EMC Don't use snapshots for TileEntity::getOwner
---
src/main/java/net/minecraft/server/TileEntity.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/main/java/net/minecraft/server/TileEntity.java b/src/main/java/net/minecraft/server/TileEntity.java
index a8e64dfd..d4556abd 100644
--- a/src/main/java/net/minecraft/server/TileEntity.java
+++ b/src/main/java/net/minecraft/server/TileEntity.java
@@ -235,7 +235,7 @@ public abstract class TileEntity implements KeyedObject { // Paper
// CraftBukkit start - add method
// Paper start
public InventoryHolder getOwner() {
- return getOwner(true);
+ return getOwner(false); // EMC - don't use snapshots
}
public InventoryHolder getOwner(boolean useSnapshot) {
// Paper end
--
2.25.1.windows.1