From fe1199caa5cb1bb3857a3679a79bfdcaf4deb406 Mon Sep 17 00:00:00 2001 From: md_5 Date: Mon, 6 May 2019 20:00:27 +1000 Subject: [PATCH] SPIGOT-4874: Use empty loot context Appears to work irrespective of what the loot table requires --- src/main/java/org/bukkit/craftbukkit/CraftLootTable.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/bukkit/craftbukkit/CraftLootTable.java b/src/main/java/org/bukkit/craftbukkit/CraftLootTable.java index 8e23289091..7d06f24af9 100644 --- a/src/main/java/org/bukkit/craftbukkit/CraftLootTable.java +++ b/src/main/java/org/bukkit/craftbukkit/CraftLootTable.java @@ -90,7 +90,7 @@ public class CraftLootTable implements org.bukkit.loot.LootTable { builder.set(LootContextParameters.DAMAGE_SOURCE, DamageSource.playerAttack(nmsKiller)); } - return builder.build(LootContextParameterSets.GENERIC); + return builder.build(LootContextParameterSets.EMPTY); } @Override