Create FileTreeInitEvent (#4489)
* filetree init event * actions do your thing
This commit is contained in:
@@ -68,6 +68,8 @@ public class EventType{
|
|||||||
public static class ContentInitEvent{}
|
public static class ContentInitEvent{}
|
||||||
/** Called when the client game is first loaded. */
|
/** Called when the client game is first loaded. */
|
||||||
public static class ClientLoadEvent{}
|
public static class ClientLoadEvent{}
|
||||||
|
/** Called *after* all the modded files have been added into Vars.tree */
|
||||||
|
public static class FileTreeInitEvent{}
|
||||||
/** Called when a game begins and the world is loaded. */
|
/** Called when a game begins and the world is loaded. */
|
||||||
public static class WorldLoadEvent{}
|
public static class WorldLoadEvent{}
|
||||||
|
|
||||||
|
|||||||
@@ -347,6 +347,7 @@ public class Mods implements Loadable{
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Events.fire(new FileTreeInitEvent());
|
||||||
|
|
||||||
//add new keys to each bundle
|
//add new keys to each bundle
|
||||||
I18NBundle bundle = Core.bundle;
|
I18NBundle bundle = Core.bundle;
|
||||||
|
|||||||
Reference in New Issue
Block a user