Some fixes to the entity replace spawn handler.
Optimize the chunk processors.
Update for Magic refactoring