diff --git a/basic_machines/forceload.lua b/basic_machines/forceload.lua index 80ae13b..3419b7f 100644 --- a/basic_machines/forceload.lua +++ b/basic_machines/forceload.lua @@ -193,7 +193,7 @@ if techage.max_num_forceload_blocks > 0 then output = "techage:forceload", recipe = { {"group:wood", "", "group:wood"}, - {"", "basic_materials:energy_crystal_simple", ""}, + {"default:mese_crystal_fragment", "techage:baborium_lump", "default:mese_crystal_fragment"}, {"group:wood", "techage:iron_ingot", "group:wood"}, }, }) diff --git a/basis/command.lua b/basis/command.lua index 791f689..5c7f7aa 100644 --- a/basis/command.lua +++ b/basis/command.lua @@ -409,7 +409,7 @@ end -- Put the given stack into the given ItemList. -- Function returns false if ItemList is full. function techage.put_items(inv, listname, stack) - if inv:room_for_item(listname, stack) then + if inv and inv.room_for_item and inv:room_for_item(listname, stack) then inv:add_item(listname, stack) return true end diff --git a/mod.conf b/mod.conf index 90496f6..f85cd5e 100644 --- a/mod.conf +++ b/mod.conf @@ -1,4 +1,4 @@ name = techage depends = default,tubelib2,basic_materials,bucket -optional_depends = unified_inventory,wielded_light,signs_bot +optional_depends = unified_inventory,wielded_light description = Hello World! \ No newline at end of file diff --git a/tools/repairkit.lua b/tools/repairkit.lua index 0209ef4..ac3936e 100644 --- a/tools/repairkit.lua +++ b/tools/repairkit.lua @@ -31,7 +31,7 @@ local function repair_node(itemstack, user, pointed_thing) if pos then if techage.repair_node(pos) then minetest.chat_send_player(user:get_player_name(), "[TechAge] Node repaired") - itemstack:take_item() + itemstack:add_wear(13108) return itemstack end end @@ -54,7 +54,7 @@ local function read_state(itemstack, user, pointed_thing) end end -minetest.register_craftitem("techage:repairkit", { +minetest.register_tool("techage:repairkit", { description = "TechAge Repair Kit", inventory_image = "techage_repairkit.png", wield_image = "techage_repairkit.png^[transformR270",