fix: avoid work
This commit is contained in:
parent
7fdc7ba4e9
commit
86a3367efa
|
@ -9,7 +9,9 @@ export default class Water extends System {
|
||||||
for (const tile in Water.water) {
|
for (const tile in Water.water) {
|
||||||
Water.water[tile] = Math.max(0, Water.water[tile] - elapsed);
|
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};
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user