*/
@SubscribeEvent
public void onMobTargetSet(LivingSetAttackTargetEvent event){
if(event.entity instanceof EntityCreature) {
if(!event.entity.worldObj.isRemote) {
NetworkHandler.sendToAllAround(new PacketSetMobTarget((EntityCreature)event.entity, event.target), new NetworkRegistry.TargetPoint(event.entity.worldObj.provider.dimensionId, event.entity.posX, event.entity.posY, event.entity.posZ, TileEntityConstants.PACKET_UPDATE_DISTANCE));
} else {
warnPlayerIfNecessary(event);
}
}
}