mirror of
https://github.com/arsdragonfly/random_messages.git
synced 2025-01-09 17:30:27 +01:00
fix indentation & fix crash on startup
This commit is contained in:
parent
703626648c
commit
7884e6b424
2
init.lua
2
init.lua
@ -26,6 +26,8 @@ function random_messages.read_messages()
|
|||||||
local input = io.open(minetest.get_worldpath().."/random_messages","r")
|
local input = io.open(minetest.get_worldpath().."/random_messages","r")
|
||||||
if not input then
|
if not input then
|
||||||
local output = io.open(minetest.get_worldpath().."/random_messages","w")
|
local output = io.open(minetest.get_worldpath().."/random_messages","w")
|
||||||
|
output:write("Blame the server admin! He/She has probably not edited the random messages yet.\n")
|
||||||
|
output:write("Tell your dumb admin that this line is in (worldpath)/random_messages \n")
|
||||||
io.close(output)
|
io.close(output)
|
||||||
input = io.open(minetest.get_worldpath().."/random_messages","r")
|
input = io.open(minetest.get_worldpath().."/random_messages","r")
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user