From 593a095a5f9d649ecabfd1c14a49ea214b46cc11 Mon Sep 17 00:00:00 2001 From: kno10 Date: Thu, 5 Sep 2024 09:31:03 +0200 Subject: [PATCH] Fix "generateImagePart" warning (#4624) Placing the texture at -16 with width 16 means it is not used. At most -14 may be used (0 indexed, I believe) if you want to retain 2x2 pixels. Reviewed-on: https://git.minetest.land/VoxeLibre/VoxeLibre/pulls/4624 Reviewed-by: the-real-herowl Co-authored-by: kno10 Co-committed-by: kno10 --- mods/ENTITIES/mcl_dripping/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/ENTITIES/mcl_dripping/init.lua b/mods/ENTITIES/mcl_dripping/init.lua index 5a96e65c4..6aa229a8c 100644 --- a/mods/ENTITIES/mcl_dripping/init.lua +++ b/mods/ENTITIES/mcl_dripping/init.lua @@ -29,7 +29,7 @@ local function make_drop(pos, liquid, sound, interval, texture) pt.expirationtime = t pt.texture = "[combine:2x2:" .. - -math.random(1, 16) .. "," .. -math.random(1, 16) .. "=" .. texture + math.random(-14, 0) .. "," .. math.random(-14, 0) .. "=" .. texture minetest.add_particle(pt)