From 9a06e6564cc1e0ac0f70eb19b0491ba1f00ea0eb Mon Sep 17 00:00:00 2001 From: cheapie Date: Sun, 13 Apr 2025 18:24:08 -0500 Subject: Fix crash in unrecognized games if xcompat isn't installed --- crafts.lua | 3 +++ 1 file changed, 3 insertions(+) (limited to 'crafts.lua') diff --git a/crafts.lua b/crafts.lua index f998429..13a8b93 100644 --- a/crafts.lua +++ b/crafts.lua @@ -29,6 +29,9 @@ if not xcompat_available then m.mese = "mesecons_torch:redstoneblock" -- mcla still carries this as an alias m.pick_steel = "mcl_core:pick_steel" m.torch = "mcl_torches:torch" + else + minetest.log("warning","[celevator] Unsupported game and xcompat not found, not registering craft recipes") + return end if minetest.get_modpath("dye") then m.dye_black = "dye:black" -- cgit v1.2.3