summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Harkness <me@bearbin.net>2014-10-01 22:37:20 +0200
committerAlexander Harkness <me@bearbin.net>2014-10-01 22:37:20 +0200
commit7c731dbd8ac55c5e5660df0e1f745a76489b646c (patch)
treeddef2f3e713e547ee316dc7f1ce5ea77b4c02450
parentAPIDump: Fixed cEntity documentation. (diff)
downloadcuberite-7c731dbd8ac55c5e5660df0e1f745a76489b646c.tar
cuberite-7c731dbd8ac55c5e5660df0e1f745a76489b646c.tar.gz
cuberite-7c731dbd8ac55c5e5660df0e1f745a76489b646c.tar.bz2
cuberite-7c731dbd8ac55c5e5660df0e1f745a76489b646c.tar.lz
cuberite-7c731dbd8ac55c5e5660df0e1f745a76489b646c.tar.xz
cuberite-7c731dbd8ac55c5e5660df0e1f745a76489b646c.tar.zst
cuberite-7c731dbd8ac55c5e5660df0e1f745a76489b646c.zip
Diffstat (limited to '')
-rw-r--r--MCServer/Plugins/APIDump/Hooks/OnServerPing.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/MCServer/Plugins/APIDump/Hooks/OnServerPing.lua b/MCServer/Plugins/APIDump/Hooks/OnServerPing.lua
index db1707e47..76b6d1517 100644
--- a/MCServer/Plugins/APIDump/Hooks/OnServerPing.lua
+++ b/MCServer/Plugins/APIDump/Hooks/OnServerPing.lua
@@ -36,7 +36,7 @@ function OnServerPing(ClientHandle, ServerDescription, OnlinePlayers, MaxPlayers
-- Change favicon
if cFile:IsFile("my-favicon.png") then
local FaviconData = cFile:ReadWholeFile("my-favicon.png")
- if FaviconData ~= "" and FaviconData ~= nil then
+ if (FaviconData ~= "") and (FaviconData ~= nil) then
Favicon = Base64Encode(FaviconData)
end
end