From 049e575da1037c64205ef9645a7829fccb59861b Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Sun, 25 Aug 2019 12:09:13 +0200 Subject: [PATCH] Don't spawn mummies above liquids --- mummy.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mummy.lua b/mummy.lua index ade2ef2..74b6cca 100644 --- a/mummy.lua +++ b/mummy.lua @@ -422,6 +422,9 @@ function tsm_pyramids.attempt_mummy_spawn(pos, player_near_required) for y=-1, -5, -1 do npos.y = npos.y - 1 local below = minetest.get_node(npos) + if minetest.registered_items[below.name].liquidtype ~= "none" then + break + end if below.name ~= "air" then if y < -1 then two_space = true