Allow interaction with nodes while wielding these items.
authorAuke Kok <sofar@foo-projects.org>
Sun, 12 Feb 2017 00:23:43 +0000 (16:23 -0800)
committerAuke Kok <sofar+github@foo-projects.org>
Wed, 1 Mar 2017 02:16:12 +0000 (18:16 -0800)
commit78c632ebd4858c67b850817df5e5a8c4ae4811a1
tree5a98305d00356ee110570326e30b63c2023b1782
parentd1b132555b47fa83d6b1cbe0d2c6dd6e48fa54b4
Allow interaction with nodes while wielding these items.

- beds
- boats
- carts
- key/skeleton key
- seeds

All these had on_place handlers that did not allow nodes with
an on_rightclick() handler to be used first (if not using
sneak). This code is taken from the torches mod and applied
everywhere.

This allows all these items to e.g. be inserted into the `frame`
mod's item frames.
mods/beds/api.lua
mods/boats/init.lua
mods/carts/cart_entity.lua
mods/default/tools.lua
mods/farming/api.lua