From 7b7c6350c60415d07ae245baaa98c04659e166e2 Mon Sep 17 00:00:00 2001 From: poma123 <25465545+poma123@users.noreply.github.com> Date: Mon, 24 Aug 2020 15:30:51 +0200 Subject: [PATCH 1/2] Fixed android script editor menu hotkey glitch --- .../implementation/items/androids/ProgrammableAndroid.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main/java/io/github/thebusybiscuit/slimefun4/implementation/items/androids/ProgrammableAndroid.java b/src/main/java/io/github/thebusybiscuit/slimefun4/implementation/items/androids/ProgrammableAndroid.java index b341e7789..61d3f0368 100644 --- a/src/main/java/io/github/thebusybiscuit/slimefun4/implementation/items/androids/ProgrammableAndroid.java +++ b/src/main/java/io/github/thebusybiscuit/slimefun4/implementation/items/androids/ProgrammableAndroid.java @@ -222,6 +222,7 @@ public class ProgrammableAndroid extends SlimefunItem implements InventoryBlock, public void openScript(Player p, Block b, String sourceCode) { ChestMenu menu = new ChestMenu(ChatColor.DARK_AQUA + SlimefunPlugin.getLocalization().getMessage(p, "android.scripts.editor")); + menu.setEmptySlotsClickable(false); menu.addItem(0, new CustomItem(Instruction.START.getItem(), SlimefunPlugin.getLocalization().getMessage(p, "android.scripts.instructions.START"), "", "&7\u21E8 &eLeft Click &7to return to the Android's interface")); menu.addMenuClickHandler(0, (pl, slot, item, action) -> { @@ -340,6 +341,8 @@ public class ProgrammableAndroid extends SlimefunItem implements InventoryBlock, protected void openScriptDownloader(Player p, Block b, int page) { ChestMenu menu = new ChestMenu("Android Scripts"); + + menu.setEmptySlotsClickable(false); menu.addMenuOpeningHandler(pl -> pl.playSound(pl.getLocation(), Sound.BLOCK_NOTE_BLOCK_HAT, 0.7F, 0.7F)); List