mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-16 16:11:06 +01:00
Set skeleton horse spawning back to false after skeleton horse is spawned
This commit is contained in:
parent
8ef653fb77
commit
1c0bffc548
1 changed files with 3 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue