Fixed bug with map setting changes not being synced over to players

This commit is contained in:
Mitchell McCaffrey
2020-07-17 19:22:12 +10:00
parent 6aa1f28c96
commit 8f9027c69f
2 changed files with 7 additions and 4 deletions

View File

@@ -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) {