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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user