Add hook for modloader (#117)
This commit is contained in:
@@ -105,6 +105,11 @@ int QuickSelectBoxWidth[3]=
|
||||
};
|
||||
#endif
|
||||
|
||||
extern "C" __declspec(dllexport) Minecraft* GetGameInstance()
|
||||
{
|
||||
return Minecraft::m_instance;
|
||||
}
|
||||
|
||||
Minecraft::Minecraft(Component *mouseComponent, Canvas *parent, MinecraftApplet *minecraftApplet, int width, int height, bool fullscreen)
|
||||
{
|
||||
// 4J - added this block of initialisers
|
||||
|
||||
@@ -60,10 +60,8 @@ public:
|
||||
// void crash(CrashReport crash);
|
||||
// public abstract void onCrash(CrashReport crash);
|
||||
|
||||
private:
|
||||
static Minecraft *m_instance;
|
||||
|
||||
public:
|
||||
MultiPlayerGameMode *gameMode;
|
||||
|
||||
private:
|
||||
|
||||
Reference in New Issue
Block a user