mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-13 16:13:19 +01:00
updates mapmerge (#21898)
This commit is contained in:
@@ -95,7 +95,7 @@ class DMM:
|
||||
# last-second handling of bogus keys to help prevent and fix broken maps
|
||||
self._ensure_free_keys(0)
|
||||
max_key = max_key_for(self.key_length)
|
||||
bad_keys = {key: 0 for key in self.dictionary.keys() if key > max_key}
|
||||
bad_keys = {key: 0 for key in self.dictionary.keys() if key >= max_key}
|
||||
if bad_keys:
|
||||
print(f"Warning: fixing {len(bad_keys)} overflowing keys")
|
||||
for k in bad_keys:
|
||||
|
||||
Reference in New Issue
Block a user