Skip to content

Commit

Permalink
fix(engine/rendering): Fix ChunkMeshRenderer listens to wrong deactiv…
Browse files Browse the repository at this point in the history
…ate event (#4932)

Co-authored-by: jdrueckert <jd.rueckert@googlemail.com>
Co-authored-by: Michael Pollind <polli104@mail.chapman.edu>
  • Loading branch information
3 people authored Nov 7, 2021
1 parent a41da96 commit 977860a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 977860a

Please sign in to comment.