Minor adjustments for previous commit.
This commit is contained in:
		| @@ -16,8 +16,6 @@ | ||||
|  */ | ||||
| package org.l2jmobius.gameserver.network.clientpackets; | ||||
|  | ||||
| import static org.l2jmobius.gameserver.model.actor.Npc.INTERACTION_DISTANCE; | ||||
|  | ||||
| import java.util.Collections; | ||||
| import java.util.List; | ||||
| import java.util.OptionalLong; | ||||
| @@ -134,7 +132,11 @@ public class MultiSellChoose implements IClientIncomingPacket | ||||
| 		final Npc npc = player.getLastFolkNPC(); | ||||
| 		if (!list.isNpcAllowed(-1)) | ||||
| 		{ | ||||
| 			if ((npc == null) || !list.isNpcAllowed(npc.getId())) | ||||
| 			if ((npc == null) // | ||||
| 				|| !list.isNpcAllowed(npc.getId()) // | ||||
| 				|| !list.checkNpcObjectId(npc.getObjectId()) // | ||||
| 				|| (player.getInstanceId() != npc.getInstanceId()) // | ||||
| 				|| !player.isInsideRadius3D(npc, Npc.INTERACTION_DISTANCE)) | ||||
| 			{ | ||||
| 				if (player.isGM()) | ||||
| 				{ | ||||
| @@ -148,15 +150,6 @@ public class MultiSellChoose implements IClientIncomingPacket | ||||
| 			} | ||||
| 		} | ||||
| 		 | ||||
| 		if (!player.isGM() && (npc != null)) | ||||
| 		{ | ||||
| 			if (!player.isInsideRadius3D(npc, INTERACTION_DISTANCE) || (player.getInstanceId() != npc.getInstanceId())) | ||||
| 			{ | ||||
| 				player.setMultiSell(null); | ||||
| 				return; | ||||
| 			} | ||||
| 		} | ||||
| 		 | ||||
| 		if (((_soulCrystalOptions != null) && CommonUtil.contains(_soulCrystalOptions, null)) || ((_soulCrystalSpecialOptions != null) && CommonUtil.contains(_soulCrystalSpecialOptions, null))) | ||||
| 		{ | ||||
| 			LOGGER.severe("Character: " + player.getName() + " requested multisell entry with invalid soul crystal options. Multisell: " + _listId + " entry: " + _entryId); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 MobiusDevelopment
					MobiusDevelopment