From edf0867e6c5adbe0c3d4a52a8e94512a70f0b160 Mon Sep 17 00:00:00 2001 From: Jean-Patrick Guerrero Date: Wed, 15 Dec 2021 13:45:19 +0100 Subject: [PATCH] Don't use bitops for 5.4 clients --- src/gui.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui.lua b/src/gui.lua index 92ab370..6dac89f 100644 --- a/src/gui.lua +++ b/src/gui.lua @@ -271,7 +271,7 @@ local function get_isometric_view(fs, pos, X, Y, t, cubes, depth, high) end end - local maxc = ((width << 1) ^ 2) * base_height + local maxc = ((width * 2) ^ 2) * base_height if cubes < maxc and depth > max_depth then -- if there's not enough map to preview, go deeper