@Override
        public void run()
        {
            while (running)
                try
                {
                    Task t = taskQueue.take();
                    if (chunks.isTaskStillValid(t))
                    {
                        chunks.setChunk(t.px, t.pz, chunks.makeChunk(t.px, t.pz));
                        repaint();
                    }
                } catch (InterruptedException ex)
                {
                }
        }