From f5a5d3bc451507c681a77043dc63857bc0a1b51e Mon Sep 17 00:00:00 2001 From: oilboi <47129783+oilboi@users.noreply.github.com> Date: Tue, 9 Jun 2020 12:32:59 -0400 Subject: [PATCH] Stop client from crashing if there are restrictions on the server --- init.lua | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/init.lua b/init.lua index bf07b14..696faa3 100644 --- a/init.lua +++ b/init.lua @@ -1,3 +1,10 @@ +--don't crash if not in crafter client +for _,r in pairs(minetest.get_csm_restrictions()) do + if r == true then + return + end +end + --declare globals weather_intake = nil weather = nil -- 2.44.0