diff options
author | red-001 <red-001@outlook.ie> | 2017-05-20 15:45:49 +0100 |
---|---|---|
committer | Loïc Blot <nerzhul@users.noreply.github.com> | 2017-05-20 16:45:49 +0200 |
commit | 772944daf69ab463568fbbf35a9011e4c8e6c44a (patch) | |
tree | 9cac5a5ed6523a07f11980b497642fd78b26453c /src/script/cpp_api | |
parent | 7e185068c4f9fb3253006a8d8a2aceea3f8000a1 (diff) | |
download | minetest-772944daf69ab463568fbbf35a9011e4c8e6c44a.tar.gz minetest-772944daf69ab463568fbbf35a9011e4c8e6c44a.tar.bz2 minetest-772944daf69ab463568fbbf35a9011e4c8e6c44a.zip |
Fix CSM crash (#5779)
Caused by dc5bc6c and them made worse by 5ebf8f9
Diffstat (limited to 'src/script/cpp_api')
-rw-r--r-- | src/script/cpp_api/s_client.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/script/cpp_api/s_client.cpp b/src/script/cpp_api/s_client.cpp index d5ec52407..55d309fda 100644 --- a/src/script/cpp_api/s_client.cpp +++ b/src/script/cpp_api/s_client.cpp @@ -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); |