mirror of
https://gitlab.com/gaelysam/mapgen_rivers.git
synced 2025-07-07 19:00:47 +02:00
Fix file opening mode on the Lua side, to avoid crashes on Windows
This commit is contained in:
2
load.lua
2
load.lua
@ -1,7 +1,7 @@
|
||||
local worldpath = minetest.get_worldpath() .. "/river_data/"
|
||||
|
||||
local function load_map(filename, bytes, signed, size)
|
||||
local file = io.open(worldpath .. filename, 'r')
|
||||
local file = io.open(worldpath .. filename, 'rb')
|
||||
local data = file:read('*all')
|
||||
if #data < bytes*size then
|
||||
data = minetest.decompress(data)
|
||||
|
Reference in New Issue
Block a user