Fix Blast Mining Fixes #5021

This commit is contained in:
nossr50
2024-07-13 16:39:04 -07:00
parent ce8464fcfe
commit 2debcbefd0
8 changed files with 83 additions and 140 deletions

View File

@@ -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.
*