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.
This commit is contained in:
parent
ee0e808d1f
commit
2bc6a9fa93
@ -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)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user