Fixed Guards attacking monsters configuration.
Contributed by G-hamsteR.
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user