File tree Expand file tree Collapse file tree 1 file changed +1
-4
lines changed
engine/src/main/java/org/terasology/engine/core Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change 1414import org .terasology .engine .context .internal .ContextImpl ;
1515import org .terasology .engine .core .bootstrap .EnvironmentSwitchHandler ;
1616import org .terasology .engine .core .modes .GameState ;
17- import org .terasology .engine .core .modes .StateLoading ;
1817import org .terasology .engine .core .module .ExternalApiWhitelist ;
1918import org .terasology .engine .core .module .ModuleManager ;
2019import org .terasology .engine .core .paths .PathManager ;
@@ -469,9 +468,7 @@ public boolean tick() {
469468 return false ;
470469 }
471470
472- // environment switch occurs during loading assetTypeManager can become invalid.
473- // potential race condition RegisterMods#step so make sure the current state is not loading
474- if (assetTypeManager instanceof AutoReloadAssetTypeManager && !(currentState instanceof StateLoading ) ) {
471+ if (assetTypeManager instanceof AutoReloadAssetTypeManager ) {
475472 ((AutoReloadAssetTypeManager ) assetTypeManager ).reloadChangedAssets ();
476473 }
477474
You can’t perform that action at this time.
0 commit comments