Set placer to nil instead of a non-functional one in item_OnPlace (#6449)
authorDTA7 <dta7e@t-online.de>
Thu, 21 Sep 2017 19:52:52 +0000 (21:52 +0200)
committerLoïc Blot <nerzhul@users.noreply.github.com>
Thu, 21 Sep 2017 19:52:52 +0000 (21:52 +0200)
commit5a3b8e34b36a1f9b1f38f91483fc25d23b142f21
treee7eaaa6524e6301aa53cde0bb33a35e3305cbaa0
parent67f97f8d3274e0e96a8f541a05a39f81dfec1a20
Set placer to nil instead of a non-functional one in item_OnPlace (#6449)

* Set placer to nil instead of a non-functional one

This requires nil checks in core.rotate_node and core.rotate_and_place.
builtin/common/misc_helpers.lua
src/script/cpp_api/s_item.cpp
src/script/lua_api/l_env.cpp