From a66e0f31ae0fd4a8a95df4b8cd49ac4d17e953e2 Mon Sep 17 00:00:00 2001 From: BuckarooBanzay Date: Sun, 29 Jan 2023 13:49:00 +0100 Subject: [PATCH] sanity check for ``minetest.encode_png --- init.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/init.lua b/init.lua index 01ddefd..426cbdd 100644 --- a/init.lua +++ b/init.lua @@ -1,5 +1,8 @@ local MP = minetest.get_modpath("otp") +-- sanity checks +assert(type(minetest.encode_png) == "function") + otp = { -- mod storage storage = minetest.get_mod_storage(),