From c3391e4ff11ae44c39a18d7de2238c9284298d48 Mon Sep 17 00:00:00 2001 From: Xeno333 Date: Wed, 11 Jun 2025 00:35:32 -0500 Subject: [PATCH] remove files that aren't supposed to be on this branch --- mapgens/superflat/LICENSE | 23 ----------------------- mapgens/superflat/init.lua | 1 - mapgens/superflat/mapgen.conf | 4 ---- mapgens/superflat/mapgen.lua | 26 -------------------------- 4 files changed, 54 deletions(-) delete mode 100644 mapgens/superflat/LICENSE delete mode 100644 mapgens/superflat/init.lua delete mode 100644 mapgens/superflat/mapgen.conf delete mode 100644 mapgens/superflat/mapgen.lua diff --git a/mapgens/superflat/LICENSE b/mapgens/superflat/LICENSE deleted file mode 100644 index 02eb4ad7c..000000000 --- a/mapgens/superflat/LICENSE +++ /dev/null @@ -1,23 +0,0 @@ -Imported from 1042 with modifications - -MIT Licesnse: - -Copyright (c) 2024 Xeno333 - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/mapgens/superflat/init.lua b/mapgens/superflat/init.lua deleted file mode 100644 index d599cbbc5..000000000 --- a/mapgens/superflat/init.lua +++ /dev/null @@ -1 +0,0 @@ -core.register_mapgen_script(core.get_modpath("superflat") .. "/mapgen.lua") \ No newline at end of file diff --git a/mapgens/superflat/mapgen.conf b/mapgens/superflat/mapgen.conf deleted file mode 100644 index 9248a887a..000000000 --- a/mapgens/superflat/mapgen.conf +++ /dev/null @@ -1,4 +0,0 @@ -name = superflat -title = Superflat -description = Example mapgen with superflat world. -author = TX_Miner/Xeno333 diff --git a/mapgens/superflat/mapgen.lua b/mapgens/superflat/mapgen.lua deleted file mode 100644 index 5d5136579..000000000 --- a/mapgens/superflat/mapgen.lua +++ /dev/null @@ -1,26 +0,0 @@ -local stone = core.get_content_id("mapgen_stone") - -core.register_on_generated(function(vm, minp, maxp, seed) - local emin, emax = vm:get_emerged_area() - local area = VoxelArea(emin, emax) - local data = vm:get_data() - - local ly = 0 - for y = minp.y, maxp.y do - ly = ly + 1 - local lz = 0 - for z = minp.z, maxp.z do - lz = lz + 1 - local vi = area:index(minp.x, y, z) - local lx = 0 - for x = minp.x, maxp.x do - if y == -1 then - data[vi] = stone - end - vi = vi + 1 - end - end - end - - vm:set_data(data) -end) \ No newline at end of file