1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

Fix CSM crash (#5779)

Caused by dc5bc6c and them made worse by 5ebf8f9
This commit is contained in:
red-001 2017-05-20 15:45:49 +01:00 committed by Loïc Blot
parent 7e185068c4
commit 772944daf6
4 changed files with 13 additions and 7 deletions

View file

@ -199,7 +199,7 @@ bool ScriptApiClient::on_placenode(const PointedThing &pointed, const ItemDefini
lua_getfield(L, -1, "registered_on_placenode");
// Push data
push_pointed_thing(L, pointed);
push_pointed_thing(L, pointed, true);
push_item_definition(L, item);
// Call functions
@ -217,7 +217,7 @@ bool ScriptApiClient::on_item_use(const ItemStack &item, const PointedThing &poi
// Push data
LuaItemStack::create(L, item);
push_pointed_thing(L, pointed);
push_pointed_thing(L, pointed, true);
// Call functions
runCallbacks(2, RUN_CALLBACKS_MODE_OR);