From 3cc8a8474ddbba93d625558352f49905d728b2e7 Mon Sep 17 00:00:00 2001 From: teknomunk Date: Thu, 26 Dec 2024 15:45:13 -0600 Subject: [PATCH] Fix rebase duplicating code --- mods/CORE/mcl_util/init.lua | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/mods/CORE/mcl_util/init.lua b/mods/CORE/mcl_util/init.lua index fe195108b..56a4aaa3d 100644 --- a/mods/CORE/mcl_util/init.lua +++ b/mods/CORE/mcl_util/init.lua @@ -810,16 +810,6 @@ end function mcl_util.get_luaentity_from_uuid(uuid) return minetest.luaentities[ mcl_util.get_active_object_id_from_uuid(uuid) ] end -function mcl_util.gen_uuid() - -- Generate a random 128-bit ID that can be assumed to be unique - -- To have a 1% chance of a collision, there would have to be 1.6x10^76 IDs generated - -- https://en.wikipedia.org/wiki/Birthday_problem#Probability_table - local u = {} - for i = 1,16 do - u[#u + 1] = string.format("%02X",math.random(1,255)) - end - return table.concat(u) -end function mcl_util.assign_uuid(obj) assert(obj)