mirror of
https://github.com/songoda/UltimateStacker.git
synced 2024-11-27 04:25:21 +01:00
fix for nosilkdrop
This commit is contained in:
parent
228fc90c51
commit
ee981846b3
@ -130,7 +130,7 @@ public class BlockListeners implements Listener {
|
||||
instance.getHologramHandler().updateHologram(stack);
|
||||
}
|
||||
}
|
||||
if (item != null && (item.getEnchantments().containsKey(Enchantment.SILK_TOUCH) && player.hasPermission("ultimatestacker.spawner.silktouch") || player.hasPermission("ultimatestacker.spawner.nosilkdrop")))
|
||||
if (player.hasPermission("ultimatestacker.spawner.nosilkdrop") || item != null && item.getEnchantments().containsKey(Enchantment.SILK_TOUCH) && player.hasPermission("ultimatestacker.spawner.silktouch"))
|
||||
block.getWorld().dropItemNaturally(block.getLocation(), Methods.getSpawnerItem(blockType, amt));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user