Fix crafting multiple leather + Code cleaup

When using shift to craft multiple leather at once, items vanish from the players inventory. Scheduling a manual inventory one tick later fixes this issue.

I've also taken the liberty to include a .gitignore and to do some code cleanup, as the formatting of the main class was all over the place.