mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Encapsulate envlock
This commit is contained in:
parent
588a0f83e9
commit
0220d0d492
4 changed files with 31 additions and 22 deletions
|
@ -160,7 +160,7 @@ void LuaEmergeAreaCallback(v3s16 blockpos, EmergeAction action, void *param)
|
|||
|
||||
// state must be protected by envlock
|
||||
Server *server = state->script->getServer();
|
||||
MutexAutoLock envlock(server->m_env_mutex);
|
||||
Server::EnvAutoLock envlock(server);
|
||||
|
||||
state->refcount--;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue