mirror of
https://github.com/luanti-org/minetest_game.git
synced 2025-05-20 14:23:16 -04:00
Update init.lua
This commit is contained in:
parent
a0115b8c9f
commit
5869b0d1eb
1 changed files with 2 additions and 1 deletions
|
@ -92,8 +92,9 @@ minetest.register_tool("fireflies:bug_net", {
|
|||
description = S("Bug Net"),
|
||||
inventory_image = "fireflies_bugnet.png",
|
||||
on_use = function(itemstack, player, pointed_thing)
|
||||
local player_name = player and player:get_player_name() or ""
|
||||
if not pointed_thing or pointed_thing.type ~= "node" or
|
||||
minetest.is_protected(pointed_thing.under, player:get_player_name()) then
|
||||
minetest.is_protected(pointed_thing.under, player_name) then
|
||||
return
|
||||
end
|
||||
local node_name = minetest.get_node(pointed_thing.under).name
|
||||
|
|
Loading…
Add table
Reference in a new issue