Added client creation event

This commit is contained in:
Anuken
2020-02-13 09:11:35 -05:00
parent 932b4d541d
commit c067be2add
3 changed files with 7 additions and 1 deletions

View File

@@ -33,6 +33,8 @@ public abstract class ClientLauncher extends ApplicationCore implements Platform
@Override @Override
public void setup(){ public void setup(){
Events.fire(new ClientCreateEvent());
Vars.loadLogger(); Vars.loadLogger();
Vars.loadFileLogger(); Vars.loadFileLogger();
Vars.platform = this; Vars.platform = this;

View File

@@ -92,6 +92,10 @@ public class EventType{
} }
} }
public static class ClientCreateEvent{
}
/** Called when the client game is first loaded. */ /** Called when the client game is first loaded. */
public static class ClientLoadEvent{ public static class ClientLoadEvent{

View File

@@ -1,3 +1,3 @@
org.gradle.daemon=true org.gradle.daemon=true
org.gradle.jvmargs=-Xms256m -Xmx1024m org.gradle.jvmargs=-Xms256m -Xmx1024m
archash=a3edc4804b57ac9f8c59216cc470f05133f8c804 archash=ff1818a232375891ffea0347130588c0e2ca68cc