Expected result: When override Generator::getSpawn and return any coordinates, level spawn will be there.
Actual result: Level spawn is always on coordinates 256x70x256(https://github.com/pmmp/PocketMine-MP/blob/master/src/pocketmine/level/format/io/region/McRegion.php#L255)
new Vector3(0, 35, 0)Found a workaroud this, you can check if the player teleports to the world and set his spawn.
@Ad5001, YOU ARE GENIUS. I did this more than year ago...
Maybe Generator::getSpawn() should be made static for this to be fixed. I don't think it would break much in comparison to all the other API changes happening...
@jasonwynn10, no. It should not be static because server uses generator instance. Avoid static.
Most helpful comment
@Ad5001, YOU ARE GENIUS. I did this more than year ago...