for (Node n : nodes.values())
{
// Broadcast to clients if necessary
if (isServer && !n.wasBroadcast())
{
CreateNode cn = new CreateNode();
cn.id = n.getId();
cn.classId = n.getClassId();
cn.owner = false;
sendToAllExceptTCP(n.getOwner(), cn);
// If node has owner, send special message
if (n.getOwner() != -1)
{
cn = new CreateNode();
cn.id = n.getId();
cn.classId = n.getClassId();
cn.owner = true;
sendToTCP(n.getOwner(), cn);