Merge pull request #1 from rubenwardy/master

Fix messages not showing, remove default from depends
This commit is contained in:
arsdragonfly 2016-03-26 12:02:56 +08:00
commit b6b076a5a3
2 changed files with 3 additions and 3 deletions

View File

@ -1 +0,0 @@
default

View File

@ -63,8 +63,9 @@ function random_messages.read_messages()
end end
function random_messages.display_message(message_number) function random_messages.display_message(message_number)
if random_messages.messages[message_number] then local msg = random_messages.messages[message_number] or message_number
minetest.chat_send_all(random_messages.messages[message_number]) if msg then
minetest.chat_send_all(msg)
end end
end end