fix(client): fix voxel model asset load
@@ -122,6 +122,14 @@ public class EngineClientImpl extends EngineBase implements EngineClient {
assetManager.getSourceManager().getSources().add(engineAssetSource);
shutdownListeners.add(() -> assetManager.dispose());
+ assetManager.register(AssetType
+ .builder(BakedModel.class)
+ .name("VoxelModel")
+ .provider(new ModelManager())
+ .parentLocation("model")
+ .extensionName(".json")
+ .build());
+
logger.info("Initializing render context!");
renderManager = new EngineRenderManager(this);
RenderManager.Internal.setInstance(renderManager);
@@ -131,8 +139,6 @@ public class EngineClientImpl extends EngineBase implements EngineClient {
addShutdownListener(renderManager::dispose);
assetManager.getReloadManager().addListener(AssetReloadListener.builder().name("Shader").runnable(ShaderManager.instance()::reload).build());
- assetManager.register(AssetType.builder(BakedModel.class).name("VoxelModel").provider(new ModelManager()).parentLocation("model").extensionName(".json").build());
-
logger.info("Initializing audio context!");
soundManager = new EngineSoundManager();
soundManager.init();
