mirror of
https://github.com/PixelGuys/Cubyz.git
synced 2025-08-03 11:17:05 -04:00
Insert missing mutex.lock that caused a crash on mac.
This commit is contained in:
parent
758b9ec21b
commit
b62c7d8cb3
@ -925,6 +925,7 @@ pub fn updateMeshes(targetTime: i64) void {
|
||||
mesh.needsMeshUpdate = false;
|
||||
if(getNodePointer(mesh.pos).mesh != mesh) {
|
||||
mutex.unlock();
|
||||
defer mutex.lock();
|
||||
mesh.decreaseRefCount();
|
||||
continue;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user