Fix spelling of "attempt"

This commit is contained in:
ShadowNinja 2014-01-13 22:11:31 -05:00 committed by Nils Dagsson Moskopp
parent 7e24d1ec9c
commit 6154aa6365
Signed by: erle
GPG Key ID: A3BC671C35191080
1 changed files with 3 additions and 3 deletions

View File

@ -317,14 +317,14 @@ minetest.register_item(":", {
function minetest.override_item(name, redefinition) function minetest.override_item(name, redefinition)
if redefinition.name ~= nil then if redefinition.name ~= nil then
error("Attemt to redefine name of "..name.." to "..dump(redefinition.name), 2) error("Attempt to redefine name of "..name.." to "..dump(redefinition.name), 2)
end end
if redefinition.type ~= nil then if redefinition.type ~= nil then
error("Attemt to redefine type of "..name.." to "..dump(redefinition.type), 2) error("Attempt to redefine type of "..name.." to "..dump(redefinition.type), 2)
end end
local item = minetest.registered_items[name] local item = minetest.registered_items[name]
if not item then if not item then
error("Attemt to override non-existent item "..name, 2) error("Attempt to override non-existent item "..name, 2)
end end
for k, v in pairs(redefinition) do for k, v in pairs(redefinition) do
rawset(item, k, v) rawset(item, k, v)