mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-18 00:25:39 +01:00
SPIGOT-5195 (#2): Player loot table does not drop when keepInventory is on
This commit is contained in:
parent
c88867e4fc
commit
3e7b3862c7
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user