Now changing the block category when the mouse clicks instead of on mouse_up.
Merge pull request #556 from LLK/fix_palette_change

Change the block category when the mouse clicks instead of on mouse_up