From e1f9a8d4f6a2ed743a5fba7eced864550e814100 Mon Sep 17 00:00:00 2001 From: Joachim Stolberg Date: Wed, 27 Jan 2021 19:29:21 +0100 Subject: [PATCH] Improve version check --- tubelib/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tubelib/init.lua b/tubelib/init.lua index 6f52324..8c87414 100644 --- a/tubelib/init.lua +++ b/tubelib/init.lua @@ -98,7 +98,7 @@ minetest.register_craft({ if tubelib2.version < 2.0 then - minetest.log("error", "TechPack/Tubelib requires tubelib2 version 2.0 or newer!!!") + error("TechPack/Tubelib requires tubelib2 version 2.0 or newer!!!") else dofile(minetest.get_modpath("tubelib") .. "/tubes.lua") dofile(minetest.get_modpath("tubelib") .. "/command.lua")