fix(RenderableWorldImpl): update for ChunkMonitor change
-// Copyright 2021 The Terasology Foundation
+// Copyright 2022 The Terasology Foundation
// SPDX-License-Identifier: Apache-2.0
package org.terasology.engine.rendering.world;
ChunkView chunkView = worldProvider.getLocalView(c.getPosition());
if (chunkView != null && chunkView.isValidView() && chunkMeshProcessing.remove(c.getPosition())) {
ChunkMesh newMesh = chunkTessellator.generateMesh(chunkView);
- ChunkMonitor.fireChunkTessellated(new Vector3i(c.getPosition()), newMesh);
+ ChunkMonitor.fireChunkTessellated(c, newMesh);
return Optional.of(Tuples.of(c, newMesh));
}
return Optional.empty();
