From 479f6d389392aba3fca5ad776755f45dac0d4fce Mon Sep 17 00:00:00 2001 From: Brevven Date: Sat, 18 Mar 2023 14:43:49 -0700 Subject: [PATCH] up --- settings-util.lua | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 settings-util.lua diff --git a/settings-util.lua b/settings-util.lua new file mode 100644 index 0000000..5c3f13c --- /dev/null +++ b/settings-util.lua @@ -0,0 +1,13 @@ +-- WARNING WARNING WARNING +-- This file will be overwritten in mod zipfiles, edit bzlib/settings-util.lua +-- WARNING WARNING WARNING + +local util = {} + +function util.set_default_value(t, name, default) + if data.raw[t] and data.raw[t][name] then + data.raw[t][name].default_value = default + end +end + +return util