repo.or.cz
/
minetest_tutorial_subgame.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Strip areas mod down to its neccessary parts
[minetest_tutorial_subgame.git]
/
mods
/
areas
/
internal.lua
blob
61617e4f786b5e1e86949dc49112c03271ccf1cf
1
-- Load the areas table from the save file
2
function
areas
:
load
()
3
local
file
,
err
=
io
.
open
(
self
.
config
.
filename
,
"r"
)
4
if
err
then
5
self
.
areas
=
self
.
areas
or
{}
6
return
err
7
end
8
self
.
areas
=
minetest
.
deserialize
(
file
:
read
(
"*a"
))
9
if
type
(
self
.
areas
) ~=
"table"
then
10
self
.
areas
= {}
11
end
12
file
:
close
()
13
end