[Bug Fix] Fix #zone 0. (#2691)

# Notes
- `#zone 0` was used to send you to safe coordinates, this has been broken for a while now.
This commit is contained in:
Alex King 2023-01-01 13:55:17 -05:00 committed by GitHub
parent 16103b510d
commit c544221838
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -18,7 +18,7 @@ void command_zone(Client *c, const Seperator *sep)
zone_id = std::stoi(zone_input);
// validate
if (!GetZone(zone_id)) {
if (zone_id != 0 && !GetZone(zone_id)) {
c->Message(Chat::White, fmt::format("Could not find zone by id [{}]", zone_id).c_str());
return;
}