Fix drop issues in some cases where mobs don't drop loot

This commit is contained in:
ceze88 2023-07-16 20:29:00 +02:00
parent 8a31f3e0c2
commit 98e03a2861

View File

@ -66,7 +66,7 @@ public class DropUtils {
}
private static void dropItems(List<ItemStack> items, EntityDeathEvent event) {
if (SongodaCore.isRegistered("UltimateStacker")) {
if (Bukkit.getPluginManager().isPluginEnabled("UltimateStacker")) {
List<StackedItem> stacks = new ArrayList<>();
int maxSize = UltimateStackerApi.getSettings().getMaxItemStackSize() - 64;
for (ItemStack item : items) {