From c45c0a983b244973dbea76cbcab45479d8132dc8 Mon Sep 17 00:00:00 2001 From: md_5 Date: Thu, 23 May 2019 20:48:20 +1000 Subject: [PATCH] SPIGOT-4972: Cannot add contextual data to loot table API --- 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 7d06f24af9..13f4ffaf5c 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.EMPTY); + return builder.build(getHandle().a()); } @Override