From 40d22d2173b67fe3e9feac8be6b74f6267073419 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Mon, 11 Dec 2017 19:33:58 +0100 Subject: [PATCH] Fix crash when using eye of ender in singlenode --- mods/MAPGEN/mcl_structures/init.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/mods/MAPGEN/mcl_structures/init.lua b/mods/MAPGEN/mcl_structures/init.lua index 52f0748569..e17859ceea 100644 --- a/mods/MAPGEN/mcl_structures/init.lua +++ b/mods/MAPGEN/mcl_structures/init.lua @@ -306,7 +306,11 @@ Format of return value: TODO: Implement this function for all other structure types as well. ]] mcl_structures.get_registered_structures = function(structure_type) - return table.copy(registered_structures[structure_type]) + if registered_structures[structure_type] then + return table.copy(registered_structures[structure_type]) + else + return {} + end end -- Register a structures table for the given type. The table format is the same as for