rp_mobs_spawn: fix checking for peaceful tag (fixes #205)
This commit is contained in:
parent
729e53582a
commit
0ec21fa93a
@ -65,7 +65,7 @@ function rp_mobs_spawn.register_spawn(name, params)
|
||||
end
|
||||
|
||||
-- Non-peaceful mobs cannot spawn if setting restricts it
|
||||
if setting_peaceful_only and rp_mobs.mobdef_has_tag(name, "peaceful") then
|
||||
if setting_peaceful_only and not rp_mobs.mobdef_has_tag(name, "peaceful") then
|
||||
return
|
||||
end
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user