Make natural item dropping mimic Vanilla

Make sure we don't regress SPIGOT-260 by using exact drop method like Entity does

By: md_5 <git@md-5.net>
This commit is contained in:
CraftBukkit/Spigot
2018-10-31 20:09:21 +11:00
parent 5ba0644847
commit bd22f8a46c
2 changed files with 8 additions and 33 deletions

View File

@@ -438,7 +438,7 @@ public class CraftEventFactory {
for (org.bukkit.inventory.ItemStack stack : event.getDrops()) {
if (stack == null || stack.getType() == Material.AIR || stack.getAmount() == 0) continue;
world.dropItemNaturally(entity.getLocation(), stack);
world.dropItem(entity.getLocation(), stack);
}
return event;
@@ -464,7 +464,7 @@ public class CraftEventFactory {
for (org.bukkit.inventory.ItemStack stack : event.getDrops()) {
if (stack == null || stack.getType() == Material.AIR) continue;
world.dropItemNaturally(entity.getLocation(), stack);
world.dropItem(entity.getLocation(), stack);
}
return event;