Upstream has released updates that appears to apply and compile correctly Paper Changes: 81706e626 Make the shutdown thread try to shutdown on main 891824509 Prevent opening inventories when frozen e6d395cc8 Port 04-Util.patch from Tuinity (#3136) 59453f667 Fix incorrectly loading chunks on a cancelled interact event bdcc31caa Let invalid positioned entities clean up previous chunk by the chunkCheck
23 lines
1.1 KiB
Diff
23 lines
1.1 KiB
Diff
From d3ff7343f8ff4455d569be2e92c2d141ccad5c18 Mon Sep 17 00:00:00 2001
|
|
From: =?UTF-8?q?=E3=84=97=E3=84=A0=CB=8B=20=E3=84=91=E3=84=A7=CB=8A?=
|
|
<tsao-chi@the-lingo.org>
|
|
Date: Thu, 2 Apr 2020 11:43:20 +0800
|
|
Subject: [PATCH] Don't trigger Lootable Refresh for non player interaction
|
|
|
|
|
|
diff --git a/src/main/java/net/minecraft/server/TileEntityLootable.java b/src/main/java/net/minecraft/server/TileEntityLootable.java
|
|
index d4cbce324..0ff6ebbf9 100644
|
|
--- a/src/main/java/net/minecraft/server/TileEntityLootable.java
|
|
+++ b/src/main/java/net/minecraft/server/TileEntityLootable.java
|
|
@@ -49,6 +49,7 @@ public abstract class TileEntityLootable extends TileEntityContainer {
|
|
}
|
|
|
|
public void d(@Nullable EntityHuman entityhuman) {
|
|
+ if (entityhuman == null) return; // Akarin - Don't trigger Lootable Refresh for non player interaction
|
|
if (this.lootableData.shouldReplenish(entityhuman) && this.world.getMinecraftServer() != null) { // Paper
|
|
LootTable loottable = this.world.getMinecraftServer().getLootTableRegistry().getLootTable(this.lootTable);
|
|
|
|
--
|
|
2.20.1
|
|
|