Skip to content

Commit

Permalink
Fix Particle errors minetest-mods#81
Browse files Browse the repository at this point in the history
Somewhere between minetest v5.8 and 5.9, it stopped allowing texture modifiers without a baseimg

ERROR[Main]: generateImage(): baseimg is NULL (attempted to create texture "")
ERROR[Main]: generateImagePart(): baseime == NUL for part_of_name="[colorize:#FB0:255", cancelling.
ERROR[Main]: generateImage(): Failed to generate "[colorize:#FB09:255"
ERROR[Main]: part of texture "^[colorize:#FB0:255"
ERROR[Main]: generateImage(): baseimg is NULL (attempted to create texture "^[colorize:#FB0:255")
  • Loading branch information
Treer committed Dec 7, 2024
1 parent bd28f97 commit 3e6f2e5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions nodes.lua
Original file line number Diff line number Diff line change
Expand Up @@ -668,11 +668,11 @@ local function smash_lava_crust(pos, playsound)
maxexptime = 1,
minsize = .2,
maxsize = .8,
texture = "^[colorize:#A00:255",
texture = "blank.png^[noalpha^[colorize:#A00:255",
glow = 8
}
minetest.add_particlespawner(lava_particlespawn_def)
lava_particlespawn_def.texture = "^[colorize:#FB0:255"
lava_particlespawn_def.texture = "blank.png^[noalpha^[colorize:#FB0:255"
lava_particlespawn_def.maxvel.y = 3
lava_particlespawn_def.glow = 12
minetest.add_particlespawner(lava_particlespawn_def)
Expand Down Expand Up @@ -874,11 +874,11 @@ local function fumarole_onTimer(pos, elapsed)
maxexptime = 1.4,
minsize = .2,
maxsize = .8,
texture = "^[colorize:#A00:255",
texture = "blank.png^[noalpha^[colorize:#A00:255",
glow = 8
}
minetest.add_particlespawner(embers_particlespawn_def)
embers_particlespawn_def.texture = "^[colorize:#A50:255"
embers_particlespawn_def.texture = "blank.png^[noalpha^[colorize:#A50:255"
embers_particlespawn_def.maxvel.y = 3
embers_particlespawn_def.glow = 12
minetest.add_particlespawner(embers_particlespawn_def)
Expand Down

0 comments on commit 3e6f2e5

Please sign in to comment.