From 2bc6a9fa939ed5a003764651c94c2ff1b6ae1293 Mon Sep 17 00:00:00 2001 From: kno10 Date: Thu, 5 Sep 2024 00:01:25 +0200 Subject: [PATCH] Fix "generateImagePart" warning ``` WARNING[Main]: generateImagePart(): Skipping "mcl_core_water_source_animation.png" as it's out-of-bounds (-16,-16) for [combine ``` 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. --- 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 a139e172e..9d5ab6400 100644 --- a/mods/ENTITIES/mcl_dripping/init.lua +++ b/mods/ENTITIES/mcl_dripping/init.lua @@ -23,7 +23,7 @@ local function make_drop(pos, _, 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)