mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-11 22:11:51 +00:00
fix on_block_common
This commit is contained in:
parent
97eef3ef19
commit
45807fdcb1
1 changed files with 1 additions and 1 deletions
|
|
@ -351,7 +351,7 @@ static bool on_block_common(
|
||||||
result =
|
result =
|
||||||
lua::emit_event(lua::get_main_state(), name, [pos, player](auto L) {
|
lua::emit_event(lua::get_main_state(), name, [pos, player](auto L) {
|
||||||
lua::pushivec_stack(L, pos);
|
lua::pushivec_stack(L, pos);
|
||||||
lua::pushinteger(L, player->getId());
|
lua::pushinteger(L, player ? player->getId() : -1);
|
||||||
return 4;
|
return 4;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue