aboutsummaryrefslogtreecommitdiff
path: root/builtin/game/register.lua
diff options
context:
space:
mode:
authoryou <ovvv@web.de>2018-05-20 14:51:50 +0200
committerSmallJoker <SmallJoker@users.noreply.github.com>2018-05-20 14:51:50 +0200
commit22df02d25bb1ddb1de48e645c5256621ce9a9ed9 (patch)
treeb3a8fc33b177ec2af7538e6b4e444b9f7f0f6664 /builtin/game/register.lua
parent6d6b894c7ad7fbd2dcfab25488738149dc0efb06 (diff)
downloadminetest-22df02d25bb1ddb1de48e645c5256621ce9a9ed9.tar.gz
minetest-22df02d25bb1ddb1de48e645c5256621ce9a9ed9.tar.bz2
minetest-22df02d25bb1ddb1de48e645c5256621ce9a9ed9.zip
Fix missing ignore textures (#7326)
Diffstat (limited to 'builtin/game/register.lua')
-rw-r--r--builtin/game/register.lua10
1 files changed, 1 insertions, 9 deletions
diff --git a/builtin/game/register.lua b/builtin/game/register.lua
index 43bb9e067..15c08b045 100644
--- a/builtin/game/register.lua
+++ b/builtin/game/register.lua
@@ -116,8 +116,6 @@ function core.register_item(name, itemdef)
end
itemdef.name = name
- local is_overriding = core.registered_items[name]
-
-- Apply defaults and add to registered_* table
if itemdef.type == "node" then
-- Use the nodebox as selection box if it's not set manually
@@ -179,13 +177,7 @@ function core.register_item(name, itemdef)
--core.log("Registering item: " .. itemdef.name)
core.registered_items[itemdef.name] = itemdef
core.registered_aliases[itemdef.name] = nil
-
- -- Used to allow builtin to register ignore to registered_items
- if name ~= "ignore" then
- register_item_raw(itemdef)
- elseif is_overriding then
- core.log("warning", "Attempted redefinition of \"ignore\"")
- end
+ register_item_raw(itemdef)
end
function core.unregister_item(name)