mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-12-24 08:59:32 +01:00
Merge pull request 'Fix random-interval crash when not using luajit' (#2928) from fix_non_luajit_crash into master
Reviewed-on: https://git.minetest.land/MineClone2/MineClone2/pulls/2928
This commit is contained in:
commit
7e1c9a86e4
1 changed files with 1 additions and 1 deletions
|
@ -2212,7 +2212,7 @@ local monster_attack = function(self)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
if not min_player then
|
if not min_player and #blacklist_attack > 0 then
|
||||||
min_player=blacklist_attack[math.random(#blacklist_attack)]
|
min_player=blacklist_attack[math.random(#blacklist_attack)]
|
||||||
end
|
end
|
||||||
-- attack player
|
-- attack player
|
||||||
|
|
Loading…
Reference in a new issue