protected void tickEntities()
    {
        for(int i = 0;i<entities.size();i++)
        {
            Entity e = entities.get(i);
            if(e != null)
            {
                if(e.world != this)
                {
                    entities.remove(e);
                }
                else
                e.tick();
            }
        }
        
        if(!this.tileEntities.isEmpty())
        {
            for(int i = 0 ; i < this.tileEntities.size() ; i++)
            {
                TileEntity e = this.tileEntities.get(i);
                
                if(e != null)
                {
                    e.onUpdate();
                }
            }
        }
    }