Only click button once
This commit is contained in:
@@ -87,7 +87,7 @@ public class GuiHandler {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@SubscribeEvent
|
@SubscribeEvent
|
||||||
public void onButton(GuiScreenEvent.ActionPerformedEvent event) {
|
public void onButton(GuiScreenEvent.ActionPerformedEvent.Pre event) {
|
||||||
if(!event.button.enabled) return;
|
if(!event.button.enabled) return;
|
||||||
|
|
||||||
if (event.gui instanceof GuiMainMenu) {
|
if (event.gui instanceof GuiMainMenu) {
|
||||||
|
|||||||
Reference in New Issue
Block a user