Using a break to avoid extensive loop.
This commit is contained in:
		| @@ -118,6 +118,7 @@ public class SiegeGuards extends AbstractNpcAI | ||||
| 								if (!pl.isInvisible() && !pl.isInvul()) // skip invisible players | ||||
| 								{ | ||||
| 									addAttackPlayerDesire(npc, pl); | ||||
| 									break; // no need to search more | ||||
| 								} | ||||
| 							} | ||||
| 						} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 MobiusDev
					MobiusDev