Closed tarik02 closed 1 year ago
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.
This function was removed by 86a5a50330c5555e71aba73e5192a29f979de465, so this is no longer relevant.
Issue description
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)
Steps to reproduce the issue
new Vector3(0, 35, 0)
OS and versions
Plugins
Crashdump, backtrace or other files