mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-23 04:21:24 +01:00
Minor changes for zone types
This commit is contained in:
parent
16312aa864
commit
138cf5533b
2 changed files with 43 additions and 29 deletions
3
main.js
3
main.js
|
|
@ -1849,7 +1849,8 @@ function addZones(number = 1) {
|
|||
}
|
||||
|
||||
// Update zone types
|
||||
function updateZoneType(zone, newType) {
|
||||
function updateZoneType(zoneId, newType) {
|
||||
const zone = document.getElementById(zoneId);
|
||||
if (zone) {
|
||||
zone.dataset.type = newType;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue