diff options
author | Vanessa Dannenberg <vanessa.e.dannenberg@gmail.com> | 2018-08-03 09:22:17 -0400 |
---|---|---|
committer | Vanessa Dannenberg <vanessa.e.dannenberg@gmail.com> | 2018-08-03 09:22:17 -0400 |
commit | da24c09f62bd06e0b9a9309b5a1a3fdce4d02eed (patch) | |
tree | 55e5deb39fd7931e40b696701630ba555335ceaf | |
parent | cd130cf8de393e2f890a31a1b93a2158d4933a11 (diff) | |
download | unifieddyes-da24c09f62bd06e0b9a9309b5a1a3fdce4d02eed.tar unifieddyes-da24c09f62bd06e0b9a9309b5a1a3fdce4d02eed.tar.gz unifieddyes-da24c09f62bd06e0b9a9309b5a1a3fdce4d02eed.tar.bz2 unifieddyes-da24c09f62bd06e0b9a9309b5a1a3fdce4d02eed.tar.xz unifieddyes-da24c09f62bd06e0b9a9309b5a1a3fdce4d02eed.zip |
check if pointed thing actually works in on_use
-rw-r--r-- | init.lua | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -564,7 +564,7 @@ function unifieddyes.on_use(itemstack, player, pointed_thing) local stackname = itemstack:get_name() local playername = player:get_player_name() - if pointed_thing and pointed_thing.type == "node" then + if pointed_thing and pointed_thing.type == "node" and unifieddyes.select_node(pointed_thing) then if minetest.is_protected(unifieddyes.select_node(pointed_thing), playername) and not minetest.check_player_privs(playername, "protection_bypass") then minetest.chat_send_player(playername, "Sorry, someone else owns that spot.") |