Remove unused variable
Forgot to remove the player name variable after removing the protection check.master
parent
3ea965f45d
commit
99e0e22b45
1
init.lua
1
init.lua
|
@ -19,7 +19,6 @@ local function do_anchor_place(itemstack, player, pointed_thing)
|
|||
log_message("action", string.format("(%d, %d, %d)", place_position.x, place_position.y, place_position.z))
|
||||
|
||||
-- Place the floating anchor in the world
|
||||
local player_name = player:get_player_name()
|
||||
local node_to_check = minetest.get_node(place_position)
|
||||
if node_to_check.name == "air" then
|
||||
minetest.set_node(place_position, { name = "floating_anchor:floating_anchor" })
|
||||
|
|
Loading…
Reference in New Issue