From 3e6f2e504a75c77dfc1b402b4d43132e33817d36 Mon Sep 17 00:00:00 2001 From: Treer Date: Sun, 8 Dec 2024 01:15:28 +1100 Subject: [PATCH] Fix Particle errors #81 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") --- nodes.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/nodes.lua b/nodes.lua index 753858b..c5eeb63 100644 --- a/nodes.lua +++ b/nodes.lua @@ -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) @@ -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)