diff options
author | Alexander Harkness <me@bearbin.net> | 2014-10-01 21:14:28 +0200 |
---|---|---|
committer | Alexander Harkness <me@bearbin.net> | 2014-10-01 21:14:28 +0200 |
commit | adab829d8fc24e0bc21737f5e125e19620b1f87c (patch) | |
tree | 11032c3208d33e0b5933aee7bdf6ccb166e386ee /MCServer/Plugins/APIDump/Hooks/OnServerPing.lua | |
parent | Merge pull request #1494 from Masy98/blocks (diff) | |
download | cuberite-adab829d8fc24e0bc21737f5e125e19620b1f87c.tar cuberite-adab829d8fc24e0bc21737f5e125e19620b1f87c.tar.gz cuberite-adab829d8fc24e0bc21737f5e125e19620b1f87c.tar.bz2 cuberite-adab829d8fc24e0bc21737f5e125e19620b1f87c.tar.lz cuberite-adab829d8fc24e0bc21737f5e125e19620b1f87c.tar.xz cuberite-adab829d8fc24e0bc21737f5e125e19620b1f87c.tar.zst cuberite-adab829d8fc24e0bc21737f5e125e19620b1f87c.zip |
Diffstat (limited to '')
-rw-r--r-- | MCServer/Plugins/APIDump/Hooks/OnServerPing.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/MCServer/Plugins/APIDump/Hooks/OnServerPing.lua b/MCServer/Plugins/APIDump/Hooks/OnServerPing.lua index 6d2325fe6..db1707e47 100644 --- a/MCServer/Plugins/APIDump/Hooks/OnServerPing.lua +++ b/MCServer/Plugins/APIDump/Hooks/OnServerPing.lua @@ -34,9 +34,9 @@ function OnServerPing(ClientHandle, ServerDescription, OnlinePlayers, MaxPlayers MaxPlayers = 0 -- Change favicon - if (cFile:IsFile("my-favicon.png")) then + if cFile:IsFile("my-favicon.png") then local FaviconData = cFile:ReadWholeFile("my-favicon.png") - if (FaviconData != "") then + if FaviconData ~= "" and FaviconData ~= nil then Favicon = Base64Encode(FaviconData) end end |