master
Jordan Irwin 2021-06-05 07:13:19 -07:00
parent 47749e91cd
commit 8e24e31c15
2 changed files with 6 additions and 6 deletions

View File

@ -138,7 +138,7 @@ minetest.register_craftitem("compassgps:cgpsmap_marked", {
e:setyaw(yaw)
local dist=math.abs(pos.x-x)+math.abs(pos.y-y)+math.abs(pos.z-z)
if growing_wall_maps == false then
e:set_properties({visual_size={x=0.85,y=0.85}})
e:set_properties({visual_size={x=0.85,y=0.85}})
elseif dist>30000 then
e:set_properties({visual_size={x=3.45,y=3.45}})
elseif dist>15000 then

View File

@ -60,12 +60,12 @@ local file = io.open(minetest.get_worldpath().."/bookmarks", "r")
if file then
bookmarks = minetest.deserialize(file:read("*all"))
-- check if it was an empty file because empty files can crash server
if bookmarks == nil then
if bookmarks == nil then
print("compassgps:ERROR:bookmarks file exists but is empty, will recreate")
print("compassgps: this will stop the server from crashing, but bookmarks are lost")
print("compassgps: please restore "..minetest.get_worldpath().."/bookmarks from a backup if possible")
bookmarks = { }
end
end
file:close()
end
@ -140,10 +140,10 @@ local file = io.open(minetest.get_worldpath().."/compassgps_settings", "r")
if file then
settings = minetest.deserialize(file:read("*all"))
-- check if it was an empty file because empty files can crash server
if settings == nil then
if settings == nil then
print("compassgps:ERROR:compassgps_setting file exists but is empty, will recreate")
settings = { }
end
end
file:close()
end
--now transfer these to the correct variables
@ -1244,7 +1244,7 @@ function compassgps.get_compassgps_formspec(name)
"textlist[0,3.0;8.8,6;bookmark_list;"..list..";"..bkmrkidx.."]"..
"button[0,9.3;3.3,1;find_bookmark;"..S("Show selected bookmark").."]"..
telebutton
end --get_compassgps_formspec