mirror of
https://github.com/Winds-Studio/Leaf.git
synced 2025-12-22 16:39:22 +00:00
24 lines
1.1 KiB
Diff
24 lines
1.1 KiB
Diff
From 0000000000000000000000000000000000000000 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
|
|
|
|
Original license: MIT
|
|
Original project: https://github.com/starlis/empirecraft
|
|
|
|
Also see Leaf's EMC-Don-t-use-snapshots-for-acquiring-blockstate
|
|
|
|
diff --git a/net/minecraft/world/level/block/entity/BlockEntity.java b/net/minecraft/world/level/block/entity/BlockEntity.java
|
|
index d7a08a4ecac2bb4f5626fb53e27f8d50b6936f1c..129af0e69a3ec9525756b6825b795e4441de66c9 100644
|
|
--- a/net/minecraft/world/level/block/entity/BlockEntity.java
|
|
+++ b/net/minecraft/world/level/block/entity/BlockEntity.java
|
|
@@ -363,7 +363,7 @@ public abstract class BlockEntity {
|
|
|
|
// CraftBukkit start - add method
|
|
public org.bukkit.inventory.InventoryHolder getOwner() {
|
|
- return getOwner(true);
|
|
+ return getOwner(org.dreeam.leaf.config.modules.opt.TileEntitySnapshotCreation.enabled); // Leaf - EMC - Don't use snapshots for TileEntity::getOwner
|
|
}
|
|
|
|
public org.bukkit.inventory.InventoryHolder getOwner(boolean useSnapshot) {
|