Fix butcher_settings stackoverflow and remove back function for the js api
This commit is contained in:
@@ -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()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user