Fix butcher_settings stackoverflow and remove back function for the js api

This commit is contained in:
Marcel Konrad
2019-11-07 21:34:59 +01:00
parent c812a86d85
commit 261de16dd3

View File

@@ -39,16 +39,11 @@ public class ActionHelper
Minecraft.getInstance().mouseHelper.grabMouse(); Minecraft.getInstance().mouseHelper.grabMouse();
} }
public static void back(String id) throws Exception
{
ActionHelper.back(Contents.getRegisteredContent(id));
}
public static void back(Content content) throws Exception public static void back(Content content) throws Exception
{ {
if(content.getBackContent() != null) if(content.getBackContent() != null)
{ {
ActionHelper.open(content.getBackContent()); Minecraft.getInstance().displayGuiScreen(new GuiWorldHandler(content.getBackContent()));
} }
} }