1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2024-11-16 15:30:30 +01:00

Fixed typo in intweak mod

This commit is contained in:
LeMagnesium 2015-02-14 17:31:51 +01:00
parent 0899d85dac
commit 001267c7eb

View File

@ -37,7 +37,7 @@ minetest.register_on_punchnode(function(pos, node, puncher)
if minetest.setting_getbool("creative_mode") then return end if minetest.setting_getbool("creative_mode") then return end
local pn = puncher:get_player_name() local pn = puncher:get_player_name()
tools[pn] = puncher:get_wielded_item():get_name() tools[pn] = puncher:get_wielded_item():get_name()
if minetest.registred_items[tools[pn]] == nil then return end if minetest.registered_items[tools[pn]] == nil then return end
ttyp[pn] = minetest.registered_items[tools[pn]].type ttyp[pn] = minetest.registered_items[tools[pn]].type
local left = puncher:get_wielded_item():get_wear() + 65535/65--) local left = puncher:get_wielded_item():get_wear() + 65535/65--)
local tab = minetest.registered_tools[tools[pn]] local tab = minetest.registered_tools[tools[pn]]