From 1c0bffc54889a156f85c46e1f042d82c6d186a44 Mon Sep 17 00:00:00 2001 From: PrairieWind Date: Tue, 2 May 2023 13:21:19 -0600 Subject: [PATCH] Set skeleton horse spawning back to false after skeleton horse is spawned --- mods/ENVIRONMENT/lightning/init.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mods/ENVIRONMENT/lightning/init.lua b/mods/ENVIRONMENT/lightning/init.lua index 59591b061..b0710d43e 100644 --- a/mods/ENVIRONMENT/lightning/init.lua +++ b/mods/ENVIRONMENT/lightning/init.lua @@ -174,7 +174,9 @@ function lightning.strike_func(pos, pos2, objects) if get_node(pos2).name == "air" then -- Low chance for a lightning to spawn skeleton horse + skeletons if skeleton_lightning then - add_entity(pos2, "mobs_mc:skeleton_horse") + if add_entity(pos2, "mobs_mc:skeleton_horse") then + skeleton_lightning = false + end local angle, posadd angle = math.random(0, math.pi*2)