allow right-clicking doors and other items

curiously technic chests and machines worked without this patch.
But itemframes and pedestals didn't. Neither did Fancyvendors and probably a lot of items I have not even tried.

This patch should solve the issue in general.
master
Luke aka SwissalpS 2020-02-13 18:11:39 +01:00 committed by GitHub
parent a05e57b216
commit 82a0ca5f13
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 1 deletions

View File

@ -34,9 +34,14 @@ if minetest.registered_items["fire:basic_flame"] and lavastuff.enable_tool_fire
local name = user:get_player_name()
if pointed.type == "node" then
local node_under = minetest.get_node(pointed.under).name
local node = minetest.get_node(pointed.under)
local node_under = node.name
local def = minetest.registered_nodes[node_under]
if def.on_rightclick then
return def.on_rightclick(pointed.under, node, user, itemstack, pointed)
end
if minetest.is_protected(pointed.under, name) then return end
if def.on_ignite then