Merge pull request #1 from boskee/master

Updating
Entity attribute velocity was assigned to value 0 always, not the parameter velocity (wich default value is 0). In module items, the variable ITEMS_DIR was created as a empty list, but is used as a dictionary.
Merge branch 'master' of github.com:embatbr/Minecraft
Inventory.add_item: Fixed creating a new stack pushing others
Fixes self.slots becoming larger than self.slot_count
Inventory.add_item: Refactored to remove duplicate code
Fix + minor cleanup.
Avoids useless random.choices.
Inventory.add_item: Correcting tab/space error in last commit
I had it right in PR #4, honest
pyglet.options['debug_gl'] set to False to improve performance

Save and config files will now be saved in OS-specific app dir:

~/.ApplicationName/ on Linux
$HOME\Application Settings\ApplicationName on Windows
~/Library/Application Support/ApplicationName on OS X
Merge branch 'master' of git://github.com/Jimx-/Minecraft
Merge branch 'quickbar-fix2' of git://github.com/Nebual/Minecraft
Merge branch 'master' of git://github.com/embatbr/Minecraft
Allow users to save their config with --save-config
tree bug fixed, random tree height

Please see the comments in blocks.py concerning the textures used.
Added name attribute to blocks - for future use in inventory
names assigned to blocks, from boksee.
Blocks must now be destroyed by pressing and holding left mouse button. Destruction time is based on block hardness. Needs fine-tuning.
Pass on_mouse_drag onto InventoryList if open.
Updated TODO
Make water unobtainable (reduced hardness to -1, removed from initial items). Changed leaves hardness, updated TODO.