public void addEntityWithID(int entityID, Entity e)
	{
	    if(entities.contains(e))
            entities.remove(e);
        if(e instanceof EntityPlayer && !players.contains(e))
        {
            for(int i = 0;i<loadedPlayers.size();i++)
            {
                if(((EntityPlayer) e).username.equals(loadedPlayers.get(i).username))
                {
                    e.readFromChunk(loadedPlayers.get(i).writeTaggedStorageChunk(0));
                    loadedPlayers.remove(i);
                    break;
                }
            }
            players.add((EntityPlayer) e);
        }
        entities.add(e);
        for(Entity e1 : entities)
        {
            if(e1.entityID == entityID && !isRemote)
            {
                int old = entityID;
                entityID = getCorrectID();
                System.out.println("ID mismatch, "+old+" replaced by "+entityID);
                break;
            }
        }
        e.entityID = entityID;
        e.world = this;
	}