mirror of
https://github.com/arsdragonfly/random_messages.git
synced 2024-11-05 18:00:35 +01:00
Merge pull request #1 from rubenwardy/master
Fix messages not showing, remove default from depends
This commit is contained in:
commit
b6b076a5a3
|
@ -1 +0,0 @@
|
|||
default
|
5
init.lua
5
init.lua
|
@ -63,8 +63,9 @@ function random_messages.read_messages()
|
|||
end
|
||||
|
||||
function random_messages.display_message(message_number)
|
||||
if random_messages.messages[message_number] then
|
||||
minetest.chat_send_all(random_messages.messages[message_number])
|
||||
local msg = random_messages.messages[message_number] or message_number
|
||||
if msg then
|
||||
minetest.chat_send_all(msg)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user