From 3b7e91b3b7fb40c5de21821ef77d0a00ddc7b656 Mon Sep 17 00:00:00 2001 From: Starbeamrainbowlabs Date: Fri, 18 Aug 2023 15:02:26 +0100 Subject: [PATCH] weaschem: adjust call to make testable really annoying how the test environment & MT have different import schemes..... --- worldeditadditions_core/utils/parse/file/weaschem.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/worldeditadditions_core/utils/parse/file/weaschem.lua b/worldeditadditions_core/utils/parse/file/weaschem.lua index 617b4f1..b7d6b09 100644 --- a/worldeditadditions_core/utils/parse/file/weaschem.lua +++ b/worldeditadditions_core/utils/parse/file/weaschem.lua @@ -1,12 +1,14 @@ local weac = worldeditadditions_core local Vector3 -local parse_json +local parse_json, split if worldeditadditions_core then Vector3 = weac.Vector3 parse_json = weac.parse.json + split = weac.split else Vector3 = require("worldeditadditions_core.utils.vector3") parse_json = require("worldeditadditions_core.utils.parse.json") + split = require("worldeditadditions_core.utils.strings.split") end @@ -148,7 +150,7 @@ end function weaschem.parse_data_table(source) local data_table = {} - local values = weac.split(source, ",", true) + local values = split(source, ",", true) local i = 0 for _, next_val in pairs(values) do if next_val:find("x") ~= nil then