mirror of
https://github.com/craftaro/EpicSpawners.git
synced 2025-01-09 03:57:40 +08:00
Only show the convert button if the spawner is convertible.
This commit is contained in:
parent
c2c101daf7
commit
6214589047
@ -176,7 +176,7 @@ public class SpawnerOverviewGui extends CustomizableGui {
|
||||
|
||||
setItem("spawner",13, spawnerItem);
|
||||
|
||||
if (player.hasPermission("epicspawners.convert")) {
|
||||
if (player.hasPermission("epicspawners.convert") && data.isConvertible()) {
|
||||
setButton("convert", 4, GuiUtils.createButtonItem(Settings.CONVERT_ICON.getMaterial(),
|
||||
plugin.getLocale().getMessage("interface.spawner.convert").getMessage()),
|
||||
(event) -> guiManager.showGUI(player, new SpawnerConvertGui(plugin, stack, player)));
|
||||
|
Loading…
Reference in New Issue
Block a user