3
0
Mirror von https://github.com/PaperMC/Paper.git synchronisiert 2024-12-20 21:40:06 +01:00

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

Dieser Commit ist enthalten in:
Carl Poole 2019-07-26 16:47:49 -05:00 committet von md_5
Ursprung c88867e4fc
Commit 3e7b3862c7

Datei anzeigen

@ -712,10 +712,6 @@ public class CraftEventFactory {
victim.expToDrop = event.getDroppedExp(); victim.expToDrop = event.getDroppedExp();
victim.newExp = event.getNewExp(); victim.newExp = event.getNewExp();
if (event.getKeepInventory()) {
return event;
}
for (org.bukkit.inventory.ItemStack stack : event.getDrops()) { for (org.bukkit.inventory.ItemStack stack : event.getDrops()) {
if (stack == null || stack.getType() == Material.AIR) continue; if (stack == null || stack.getType() == Material.AIR) continue;