mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2024-11-20 01:43:45 +01:00
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 <the-real-herowl@noreply.git.minetest.land> Co-authored-by: kno10 <kno10@noreply.git.minetest.land> Co-committed-by: kno10 <kno10@noreply.git.minetest.land>
This commit is contained in:
parent
e9bf509c85
commit
593a095a5f
@ -29,7 +29,7 @@ local function make_drop(pos, liquid, sound, interval, texture)
|
|||||||
pt.expirationtime = t
|
pt.expirationtime = t
|
||||||
|
|
||||||
pt.texture = "[combine:2x2:" ..
|
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)
|
minetest.add_particle(pt)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user