Fixed setting a private store when config is set to 0.
Contributed by Sahar.
This commit is contained in:
		@@ -4519,7 +4519,7 @@ public class PlayerInstance extends Playable
 | 
			
		||||
		{
 | 
			
		||||
			for (Creature creature : World.getInstance().getVisibleObjects(this, Creature.class))
 | 
			
		||||
			{
 | 
			
		||||
				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;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user