mirror of
https://github.com/minetest-mods/technic.git
synced 2025-03-21 03:40:31 +01:00
Better metadata initialization
This commit is contained in:
parent
b32e77f766
commit
4183a8a96a
@ -45,7 +45,7 @@ local function lawn_trimmer_setmode(user, itemstack, meta)
|
||||
local player_name = user:get_player_name()
|
||||
|
||||
if not meta then
|
||||
meta = {mode = 0}
|
||||
meta = {mode = nil}
|
||||
end
|
||||
if not meta.mode then
|
||||
minetest.chat_send_player(player_name,
|
||||
@ -122,9 +122,8 @@ local function trim_the_lawn(itemstack, user)
|
||||
return itemstack
|
||||
end
|
||||
|
||||
function check_removal(itemstack, user, node, digparams)
|
||||
function check_removal()
|
||||
node_removed = true
|
||||
return itemstack
|
||||
end
|
||||
|
||||
-- Register the tool and its varieties in the game
|
||||
|
Loading…
x
Reference in New Issue
Block a user