mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-24 01:06:01 +01:00
SPIGOT-5195 (#2): Player loot table does not drop when keepInventory is on
By: Carl Poole <mail@carlpoole.com>
This commit is contained in:
parent
48e0a2b15c
commit
87a13de04a
1 changed files with 0 additions and 4 deletions
|
@ -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…
Add table
Reference in a new issue