Only click button once

This commit is contained in:
johni0702
2015-11-07 14:40:13 +01:00
parent 4acfcdf720
commit 6c93b7f0c6

View File

@@ -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) {