1
0
Fork 0
mirror of https://github.com/PaperMC/Paper.git synced 2025-03-30 11:19:17 +02:00

SPIGOT-5195 (): Player loot table does not drop when keepInventory is on

This commit is contained in:
Carl Poole 2019-07-26 16:47:49 -05:00 committed by md_5
parent c88867e4fc
commit 3e7b3862c7

View file

@ -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;