mirror of
https://gitlab.com/gaelysam/mapgen_rivers.git
synced 2025-11-07 11:35:17 +01: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