From: oilboi <47129783+oilboi@users.noreply.github.com> Date: Tue, 9 Jun 2020 16:32:59 +0000 (-0400) Subject: Stop client from crashing if there are restrictions on the server X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;h=f5a5d3bc451507c681a77043dc63857bc0a1b51e;p=crafter_client.git Stop client from crashing if there are restrictions on the server --- 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