mirror of
https://github.com/minetest/minetest.git
synced 2024-12-23 22:52:25 +01:00
Fix spelling of "attempt"
This commit is contained in:
parent
574ed6a363
commit
5434d87da2
@ -317,14 +317,14 @@ minetest.register_item(":", {
|
||||
|
||||
function minetest.override_item(name, redefinition)
|
||||
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
|
||||
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
|
||||
local item = minetest.registered_items[name]
|
||||
if not item then
|
||||
error("Attemt to override non-existent item "..name, 2)
|
||||
error("Attempt to override non-existent item "..name, 2)
|
||||
end
|
||||
for k, v in pairs(redefinition) do
|
||||
rawset(item, k, v)
|
||||
|
Loading…
Reference in New Issue
Block a user