aboutsummaryrefslogtreecommitdiff
path: root/builtin/game
diff options
context:
space:
mode:
authorsfan5 <sfan5@live.de>2021-10-22 10:55:18 +0200
committersfan5 <sfan5@live.de>2021-10-22 10:55:18 +0200
commita78124831f71a235756ca2321a6422295d67572f (patch)
treeed4a8d853542a4b54f6be094b0eed504282789dd /builtin/game
parent0d345dc1bd56068b8d40f8ff712a9263c6ff7517 (diff)
downloadhax-minetest-server-a78124831f71a235756ca2321a6422295d67572f.tar.gz
hax-minetest-server-a78124831f71a235756ca2321a6422295d67572f.zip
Fix incorrect error message in core.encode_png
Diffstat (limited to 'builtin/game')
-rw-r--r--builtin/game/misc.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/game/misc.lua b/builtin/game/misc.lua
index 63d64817c..05237662c 100644
--- a/builtin/game/misc.lua
+++ b/builtin/game/misc.lua
@@ -287,7 +287,7 @@ function core.encode_png(width, height, data, compression)
local expected_byte_count = width * height * 4
if type(data) ~= "table" and type(data) ~= "string" then
- error("Incorrect type for 'height', expected table or string, got " .. type(height))
+ error("Incorrect type for 'data', expected table or string, got " .. type(data))
end
local data_length = type(data) == "table" and #data * 4 or string.len(data)