fix(engine/rendering): Fix ChunkMeshRenderer listens to wrong deactivate event
@@ -51,7 +51,7 @@ public void onNewMesh(OnActivatedComponent event, EntityRef entity, ChunkMeshCom
disposalSet.add(new BuffersReference(mesh.mesh, disposalQueue));
}
- @ReceiveEvent(components = {MeshComponent.class, LocationComponent.class})
+ @ReceiveEvent(components = {ChunkMeshComponent.class, LocationComponent.class})
public void onDestroyMesh(BeforeDeactivateComponent event, EntityRef entity) {
pseudoChunks.remove(entity);
}
