Fixed bug with map setting changes not being synced over to players
This commit is contained in:
@@ -216,7 +216,11 @@ function SelectMapModal({
|
||||
const [mapStateSettingChanges, setMapStateSettingChanges] = useState({});
|
||||
|
||||
function handleMapSettingsChange(key, value) {
|
||||
setMapSettingChanges((prevChanges) => ({ ...prevChanges, [key]: value }));
|
||||
setMapSettingChanges((prevChanges) => ({
|
||||
...prevChanges,
|
||||
[key]: value,
|
||||
lastModified: Date.now(),
|
||||
}));
|
||||
}
|
||||
|
||||
function handleMapStateSettingsChange(key, value) {
|
||||
|
||||
Reference in New Issue
Block a user