From 3e7b3862c7d1c718a47d1d5e54de8e3ea5845bbf Mon Sep 17 00:00:00 2001 From: Carl Poole Date: Fri, 26 Jul 2019 16:47:49 -0500 Subject: [PATCH] SPIGOT-5195 (#2): Player loot table does not drop when keepInventory is on --- .../java/org/bukkit/craftbukkit/event/CraftEventFactory.java | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/main/java/org/bukkit/craftbukkit/event/CraftEventFactory.java b/src/main/java/org/bukkit/craftbukkit/event/CraftEventFactory.java index 3cf0053bb5..61f93251bf 100644 --- a/src/main/java/org/bukkit/craftbukkit/event/CraftEventFactory.java +++ b/src/main/java/org/bukkit/craftbukkit/event/CraftEventFactory.java @@ -712,10 +712,6 @@ public class CraftEventFactory { victim.expToDrop = event.getDroppedExp(); victim.newExp = event.getNewExp(); - if (event.getKeepInventory()) { - return event; - } - for (org.bukkit.inventory.ItemStack stack : event.getDrops()) { if (stack == null || stack.getType() == Material.AIR) continue;