Fixed Guards attacking monsters configuration.
Contributed by G-hamsteR.
This commit is contained in:
parent
2723644d8c
commit
a7c5a0e4c5
@ -41,6 +41,10 @@ public class GuardKnownList extends AttackableKnownList
|
||||
@Override
|
||||
public boolean addKnownObject(WorldObject object, Creature dropper)
|
||||
{
|
||||
if (!Config.ALLOW_GUARDS && (object instanceof MonsterInstance))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
if (!super.addKnownObject(object, dropper))
|
||||
{
|
||||
return false;
|
||||
|
@ -41,6 +41,10 @@ public class GuardKnownList extends AttackableKnownList
|
||||
@Override
|
||||
public boolean addKnownObject(WorldObject object, Creature dropper)
|
||||
{
|
||||
if (!Config.ALLOW_GUARDS && (object instanceof MonsterInstance))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
if (!super.addKnownObject(object, dropper))
|
||||
{
|
||||
return false;
|
||||
|
Loading…
Reference in New Issue
Block a user