summaryrefslogtreecommitdiffstats
path: root/MCServer/Plugins/APIDump
diff options
context:
space:
mode:
authorAlexander Harkness <me@bearbin.net>2014-10-01 21:14:28 +0200
committerAlexander Harkness <me@bearbin.net>2014-10-01 21:14:28 +0200
commitadab829d8fc24e0bc21737f5e125e19620b1f87c (patch)
tree11032c3208d33e0b5933aee7bdf6ccb166e386ee /MCServer/Plugins/APIDump
parentMerge pull request #1494 from Masy98/blocks (diff)
downloadcuberite-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 'MCServer/Plugins/APIDump')
-rw-r--r--MCServer/Plugins/APIDump/Hooks/OnServerPing.lua4
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