Fixed player using an invalid spawn chunk
Implemented saving modified chunks
Fixes entities not being saved and tile entities having an incorrect field, closes #1661