private static void updateMob(WorldClient client, ref npc thismob, ClientView mobView) { bool clientUpdate = thismob.doTick(); if (clientUpdate == true) { // Needs to send the packet to every spawned client who has this view byte[] updateData = thismob.getAndResetUpdateData(); ServerPackets pak = new ServerPackets(); pak.sendNPCUpdateData(mobView.ViewID, client, updateData); } }