Create FileTreeInitEvent (#4489)

* filetree init event

* actions do your thing
This commit is contained in:
Folker 2021-02-01 21:27:24 +07:00 committed by GitHub
parent 8704e14fd7
commit 2589a27cb5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 0 deletions

View File

@ -68,6 +68,8 @@ public class EventType{
public static class ContentInitEvent{}
/** Called when the client game is first loaded. */
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. */
public static class WorldLoadEvent{}

View File

@ -347,6 +347,7 @@ public class Mods implements Loadable{
}
}
}
Events.fire(new FileTreeInitEvent());
//add new keys to each bundle
I18NBundle bundle = Core.bundle;