Remove enchanted compass (caused a crash)

This commit is contained in:
Wuzzy 2020-12-19 15:32:32 +01:00
parent 1f124476f2
commit e22b766ffa
2 changed files with 1 additions and 5 deletions

View File

@ -2,4 +2,3 @@ mcl_core
mcl_worlds
mesecons
doc?
mcl_enchanting

View File

@ -57,9 +57,6 @@ minetest.register_globalstep(function(dtime)
if minetest.get_item_group(stack:get_name(), "compass") ~= 0 and
minetest.get_item_group(stack:get_name(), "compass")-1 ~= compass_image then
local itemname = "mcl_compass:"..compass_image
if mcl_enchanting.is_enchanted(stack:get_name()) then
itemname = itemname .. "_enchanted"
end
stack:set_name(itemname)
player:get_inventory():set_stack("main", j, stack)
end
@ -98,7 +95,7 @@ for i,img in ipairs(images) do
inventory_image = img,
wield_image = img,
stack_max = 64,
groups = {not_in_creative_inventory=inv, compass=i, tool=1, disable_repair=1, enchantability=1 }
groups = {not_in_creative_inventory=inv, compass=i, tool=1, disable_repair=1 }
})
-- Help aliases. Makes sure the lookup tool works correctly