mirror of
https://gitlab.com/phoenix-dvpmt/mmoitems.git
synced 2025-01-22 09:31:20 +01:00
Invalid droptables no longer spams the console to infinity
This commit is contained in:
parent
4564d661e2
commit
34c123309b
@ -50,6 +50,7 @@ public class MMOItemDropItem extends DropItem {
|
||||
|
||||
@Override
|
||||
public ItemStack getItem(PlayerData player, int amount) {
|
||||
if(!MMOItems.plugin.getTemplates().hasTemplate(type, id)) return null;
|
||||
ItemStack item = player == null ? MMOItems.plugin.getItem(type, id) : MMOItems.plugin.getItem(type, id, player);
|
||||
if (item == null || item.getType() == Material.AIR)
|
||||
return null;
|
||||
|
Loading…
Reference in New Issue
Block a user