Merge pull request #3489 from t34lbytes/out-of-bounds

Prevents admin from walking out non-existent exits in the wilderness
This commit is contained in:
Griatch 2024-04-27 18:44:58 +02:00 committed by GitHub
commit e516f32212
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -682,7 +682,7 @@ class WildernessExit(DefaultExit):
Returns:
bool: True if traversing_object is allowed to traverse
"""
return True
return self.wilderness.is_valid_coordinates(new_coordinates)
def at_traverse(self, traversing_object, target_location):
"""