From 6c367977a8a81e36066bc89cb8f94e3c07e7af38 Mon Sep 17 00:00:00 2001 From: kay27 Date: Wed, 19 Jan 2022 04:55:15 +0400 Subject: [PATCH] Fix a bug --- mods/MAPGEN/mcl_structures/end_exit_portal.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mods/MAPGEN/mcl_structures/end_exit_portal.lua b/mods/MAPGEN/mcl_structures/end_exit_portal.lua index 4deea1bc1..a0a171ee7 100644 --- a/mods/MAPGEN/mcl_structures/end_exit_portal.lua +++ b/mods/MAPGEN/mcl_structures/end_exit_portal.lua @@ -33,7 +33,7 @@ mcl_mapgen.register_mapgen(function(minp, maxp, seed, vm_context) for y = y2, y1, -1 do p.y = y if minetest.get_node(p).name == "mcl_end:end_stone" then - place(p, "0", PseudoRandom(vm_content.chunkseed)) + place(p, "0", PseudoRandom(vm_context.chunkseed)) return end end @@ -41,12 +41,12 @@ mcl_mapgen.register_mapgen(function(minp, maxp, seed, vm_context) for y = y2, y1, -1 do p.y = y if minetest.get_node(p).name ~= "air" then - place(p, "0", PseudoRandom(vm_content.chunkseed)) + place(p, "0", PseudoRandom(vm_context.chunkseed)) return end end - place(p0, "0", PseudoRandom(vm_content.chunkseed)) + place(p0, "0", PseudoRandom(vm_context.chunkseed)) end) mcl_structures.register_structure({name = "end_exit_portal", place_function = place})