From fd939940307b9df3b2bd0b3cb6872c1d04bcab2a Mon Sep 17 00:00:00 2001 From: MihailRis Date: Mon, 3 Jun 2024 22:54:05 +0300 Subject: [PATCH] 0.20 compatibility fix --- res/modules/toml.lua | 2 ++ res/scripts/stdlib.lua | 2 -- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/res/modules/toml.lua b/res/modules/toml.lua index 33c8faf1..3b66790c 100644 --- a/res/modules/toml.lua +++ b/res/modules/toml.lua @@ -1,2 +1,4 @@ print("WARNING: toml is replaced with built-in library, just remove 'require \"core:toml\"'") +toml.serialize = toml.tostring +toml.deserialize = toml.parse return toml diff --git a/res/scripts/stdlib.lua b/res/scripts/stdlib.lua index 4a631ae1..877d38a4 100644 --- a/res/scripts/stdlib.lua +++ b/res/scripts/stdlib.lua @@ -302,5 +302,3 @@ get_block_rotation = block.get_rotation set_block_rotation = block.set_rotation get_block_user_bits = block.get_user_bits set_block_user_bits = block.set_user_bits -toml.serialize = toml.tostring -toml.deserialize = toml.parse