Skip to content

Commit

Permalink
Fixes #215
Browse files Browse the repository at this point in the history
Ordering issue in loading up stuff. the construction of the GuiAtlas instance triggers the registering of the default markers. the initMips has to be done after that.
  • Loading branch information
tyra314 committed Feb 13, 2019
1 parent cd3ae58 commit a432e37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/hunternif/mc/atlas/ClientProxy.java
Original file line number Diff line number Diff line change
Expand Up @@ -104,10 +104,10 @@ public void init(FMLInitializationEvent event) {
// Prevent rewriting of the config while no changes have been made:
MarkerRegistry.INSTANCE.setDirty(true);

guiAtlas = new GuiAtlas();
for (MarkerType type : MarkerRegistry.getValues()) {
type.initMips();
}
guiAtlas = new GuiAtlas();

if (!SettingsConfig.gameplay.itemNeeded) {
KeyHandler.registerBindings();
Expand Down

0 comments on commit a432e37

Please sign in to comment.