More server fixes

The forum doesn’t like me spamming fixes and won’t let me post more than three replies to a given topic in a row. :slight_smile:

When a lava flan dies, it replaces the node at its position with fire. It doesn’t matter what the node is or if inside a protection. This was fixed upstream may2018.

diff --git a/lava_flan.lua b/lava_flan.lua
index 7f99e32..5751ed5 100644
--- a/lava_flan.lua
+++ b/lava_flan.lua
@@ -51,7 +51,11 @@ mobs:register_mob("mobs_monster:lava_flan", {
 		punch_end = 28,
 	},
 	on_die = function(self, pos)
-		minetest.set_node(pos, {name = "fire:basic_flame"})
+
+		if minetest.get_node(pos).name == "air" then
+			minetest.set_node(pos, {name = "fire:basic_flame"})
+		end
+
 		self.object:remove()
 
 		minetest.add_particlespawner({

I don’t know why but the duplicate “default:dirt_with_dry_grass” causes it to not spread because minetest.find_nodes_in_area() doesn’t see it.

diff --git a/dirt.lua b/dirt.lua
index 898803a..6b0c5f9 100755
--- a/dirt.lua
+++ b/dirt.lua
@@ -82,7 +82,7 @@ dirts = {
 	"ethereal:prairie_dirt", "ethereal:cold_dirt", "ethereal:crystal_dirt",
 	"ethereal:mushroom_dirt", "ethereal:fiery_dirt", "ethereal:gray_dirt",
 	"default:dirt_with_grass", "default:dirt_with_dry_grass", "ethereal:green_dirt",
-	"default:dirt_with_snow", "default:dirt_with_dry_grass", "ethereal:mesa_dirt",
+	"default:dirt_with_snow", "ethereal:mesa_dirt",
 	"ethereal:swamp_dirt"
 }
1 Like

huh, we are at januar '19. not amazing to state though.

Update: dirt patch applied

3 Likes