Fixed: Incorrect SpawnPotentials structure when adjusting spawn positions during copy and import.

Described in mcedit/mcedit#347
Debug: Move static def generating code into a function.

Fixes #136