Fixes most bugs

The only bug that comes to mind right now that isn't fixed, is when you click on the block with a wrench in your hand... it wrenches the block, then opens the gui, it should not do this at all (I've attempted to fix it, however I don't think it works?).