From b7a1c9fcc4ed083dcf482d375b599cbed443c7a0 Mon Sep 17 00:00:00 2001 From: Coder12a <38924418+Coder12a@users.noreply.github.com> Date: Thu, 23 May 2019 10:26:30 -0500 Subject: [PATCH] Add: get and set serializer function --- colddb.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/colddb.lua b/colddb.lua index a772847..f3f198d 100644 --- a/colddb.lua +++ b/colddb.lua @@ -64,7 +64,7 @@ function colddb.Colddb(dir) use_async = value end - self.get_serializer_type = function(value) + self.get_serializer_type = function() return serializer_type end @@ -75,6 +75,10 @@ function colddb.Colddb(dir) deserializer = minetest.deserialize end end + + self.get_serializer = function() + return serializer, deserializer + end local function file_exists(name) local f = io.open(string.format("%s/%s.cold", directory, name), "r")