diff --git a/common/src/main/java/muramasa/antimatter/gui/ButtonOverlay.java b/common/src/main/java/muramasa/antimatter/gui/ButtonOverlay.java index 171d7acd0..11fce2fda 100644 --- a/common/src/main/java/muramasa/antimatter/gui/ButtonOverlay.java +++ b/common/src/main/java/muramasa/antimatter/gui/ButtonOverlay.java @@ -8,8 +8,7 @@ public class ButtonOverlay implements IAntimatterObject { public static ButtonOverlay STOP = new ButtonOverlay(Ref.ID,"stop",16, 16); public static ButtonOverlay TORCH_OFF = new ButtonOverlay(Ref.ID,"torch_off",16, 16); - public static ButtonOverlay TORCH_ON = new ButtonOverlay(Ref.ID,"torch_on",16, 16) - .setTextureOverride(new ResourceLocation("textures/item/redstone_torch.png")); + public static ButtonOverlay TORCH_ON = new ButtonOverlay(Ref.ID,"torch_on",16, 16); public static ButtonOverlay REDSTONE = new ButtonOverlay(Ref.ID, "redstone", 16, 16) .setTextureOverride(new ResourceLocation("textures/item/redstone.png")); public static ButtonOverlay EXPORT = new ButtonOverlay(Ref.ID,"export",16, 16); diff --git a/common/src/main/java/muramasa/antimatter/gui/widget/CycleButtonWidget.java b/common/src/main/java/muramasa/antimatter/gui/widget/CycleButtonWidget.java index 7b3f75787..af95e2a42 100644 --- a/common/src/main/java/muramasa/antimatter/gui/widget/CycleButtonWidget.java +++ b/common/src/main/java/muramasa/antimatter/gui/widget/CycleButtonWidget.java @@ -48,6 +48,6 @@ public static WidgetSupplier build(ToIntFunction syncFunction, IGui } public static WidgetSupplier build(ToIntFunction syncFunction, IGuiEvent.IGuiEventFactory ev, int id, IntFunction tooltipKey, ButtonOverlay... buttons) { - return builder(((a, b) -> new CycleButtonWidget(a, b, but -> but.gui.sendPacket(but.gui.handler.createGuiPacket(new GuiEvents.GuiEvent(ev, Screen.hasShiftDown() ? 1 : 0, id))), syncFunction, buttons).setTooltipKey(tooltipKey))); + return builder(((a, b) -> new CycleButtonWidget(a, b, but -> but.gui.sendPacket(but.gui.handler.createGuiPacket(new GuiEvents.GuiEvent(ev, Screen.hasShiftDown() ? 1 : 0, id))), syncFunction, buttons).setTooltipKeyFunction(tooltipKey))); } } diff --git a/common/src/main/resources/assets/antimatter/textures/gui/button/torch_on.png b/common/src/main/resources/assets/antimatter/textures/gui/button/torch_on.png new file mode 100644 index 000000000..7ee608bfd Binary files /dev/null and b/common/src/main/resources/assets/antimatter/textures/gui/button/torch_on.png differ