fix: avoid work

This commit is contained in:
cha0s 2024-07-02 21:25:52 -05:00
parent 7fdc7ba4e9
commit 86a3367efa

View File

@ -9,7 +9,9 @@ export default class Water extends System {
for (const tile in Water.water) {
Water.water[tile] = Math.max(0, Water.water[tile] - elapsed);
}
Water.water = {...Water.water};
if (Object.keys(Water.water).length > 0) {
Water.water = {...Water.water};
}
}
}