Fixed setting a private store when config is set to 0.

Contributed by Sahar.
This commit is contained in:
MobiusDevelopment
2021-02-21 04:33:19 +00:00
parent 0def6e1c03
commit 970be046f6
19 changed files with 19 additions and 19 deletions

View File

@@ -4552,7 +4552,7 @@ public class PlayerInstance extends Playable
{
for (Creature creature : World.getInstance().getVisibleObjectsInRange(this, Creature.class, 1000))
{
if (Util.checkIfInRange(creature.getMinShopDistance(), this, creature, true))
if ((creature.getMinShopDistance() > 0) && Util.checkIfInRange(creature.getMinShopDistance(), this, creature, true))
{
sendPacket(new SystemMessage(SystemMessageId.YOU_CANNOT_OPEN_A_PRIVATE_STORE_HERE));
return false;