Refactor to use async/await in the saveWorld method of ZoneServer2016.
What changed?
The saveWorld method in src/servers/ZoneServer2016/zoneserver.ts was refactored to use async/await instead of promise chaining. This enhances code readability and maintainability.
How to test?
Ensure that the world saving functionality still works as expected. Specifically, verify that the world data (characters, constructions, crops, traps, vehicles, etc.) is correctly saved and that proper notifications are sent to admins.
Why make this change?
This change was made to improve the readability and maintainability of the code by leveraging modern JavaScript features.
TL;DR
Refactor to use async/await in the saveWorld method of ZoneServer2016.
What changed?
The saveWorld method in src/servers/ZoneServer2016/zoneserver.ts was refactored to use async/await instead of promise chaining. This enhances code readability and maintainability.
How to test?
Ensure that the world saving functionality still works as expected. Specifically, verify that the world data (characters, constructions, crops, traps, vehicles, etc.) is correctly saved and that proper notifications are sent to admins.
Why make this change?
This change was made to improve the readability and maintainability of the code by leveraging modern JavaScript features.