diff --git a/src/main/java/com/jozufozu/flywheel/backend/instancing/AbstractInstance.java b/src/main/java/com/jozufozu/flywheel/backend/instancing/AbstractInstance.java index b17051c50..7608123d3 100644 --- a/src/main/java/com/jozufozu/flywheel/backend/instancing/AbstractInstance.java +++ b/src/main/java/com/jozufozu/flywheel/backend/instancing/AbstractInstance.java @@ -29,6 +29,13 @@ public abstract class AbstractInstance implements IInstance, ILightUpdateListene this.world = world; } + /** + * Initialize models here. + */ + public void init() { + + } + /** * Free any acquired resources. */ diff --git a/src/main/java/com/jozufozu/flywheel/backend/instancing/InstanceManager.java b/src/main/java/com/jozufozu/flywheel/backend/instancing/InstanceManager.java index 573d3fac2..abfc67bad 100644 --- a/src/main/java/com/jozufozu/flywheel/backend/instancing/InstanceManager.java +++ b/src/main/java/com/jozufozu/flywheel/backend/instancing/InstanceManager.java @@ -286,6 +286,7 @@ public abstract class InstanceManager implements MaterialManagerImpl.OriginSh AbstractInstance renderer = createRaw(obj); if (renderer != null) { + renderer.init(); renderer.updateLight(); LightUpdater.get(renderer.world) .addListener(renderer);