mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-07-28 01:55:28 +02:00
Fix Blast Mining Fixes #5021
This commit is contained in:
@@ -681,6 +681,21 @@ public final class ItemUtils {
|
||||
return enchantmentWrappers.get(randomIndex);
|
||||
}
|
||||
|
||||
/**
|
||||
* Drop items at a given location.
|
||||
*
|
||||
* @param location The location to drop the items at
|
||||
* @param itemStacks The items to drop
|
||||
*/
|
||||
public static void spawnItems(@Nullable Player player,
|
||||
@NotNull Location location,
|
||||
@NotNull Collection<ItemStack> itemStacks,
|
||||
@NotNull ItemSpawnReason itemSpawnReason) {
|
||||
for (ItemStack is : itemStacks) {
|
||||
spawnItem(player, location, is, itemSpawnReason);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Drop items at a given location.
|
||||
*
|
||||
|
Reference in New Issue
Block a user