Fix rotate_node to return the correct itemstack.
authorAaron Suen <warr1024@gmail.com>
Sun, 13 Oct 2019 13:32:39 +0000 (09:32 -0400)
committersfan5 <sfan5@live.de>
Sun, 13 Oct 2019 15:11:00 +0000 (17:11 +0200)
commit0df646e0689b5324c7bdb13205c2a63e42ebe8e8
treef68dfef27e4e064a70939be7176eb2342dd7de96
parent47d07793654c1bdd92afbcb486e1ff1429f29a8f
Fix rotate_node to return the correct itemstack.

All on_* hooks that return an itemstack are NOT guaranteed to
modify and return the original stack.  We cannot count on the
behavior of the existing builtin definitions not to be overridden
by game/mod logic.
builtin/common/misc_helpers.lua