mirror of
https://gitlab.com/gaelysam/mapgen_rivers.git
synced 2025-11-07 11:35:17 +01:00
Re-organized the code. All polygon-related calculations go to polygons.lua.
This commit is contained in:
4
load.lua
4
load.lua
@@ -1,5 +1,7 @@
|
||||
local worldpath = minetest.get_worldpath() .. "/"
|
||||
|
||||
local function load_map(filename, bytes, signed, size)
|
||||
local file = io.open(filename, 'r')
|
||||
local file = io.open(worldpath .. filename, 'r')
|
||||
local data = file:read('*all')
|
||||
if #data < bytes*size then
|
||||
data = minetest.decompress(data)
|
||||
|
||||
Reference in New Issue
Block a user