Skip to content

Commit 6200d9c

Browse files
committed
Allow people to make a redundant ID assignment.
1 parent 3200f5c commit 6200d9c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Items.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
for key, val in enumerate(item_table):
2828
if "id" in item_table[key]:
2929
item_id = item_table[key]["id"]
30-
if item_id > count:
30+
if item_id >= count:
3131
count = item_id
3232
else:
3333
raise ValueError(f"{item_table[key]['name']} has an invalid ID. ID must be at least {count + 1}")

src/Locations.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
if "id" in location_table[key]:
2121
item_id = location_table[key]["id"]
22-
if item_id > count:
22+
if item_id >= count:
2323
count = item_id
2424
else:
2525
raise ValueError(f"{location_table[key]['name']} has an invalid ID. ID must be at least {count + 1}")

0 commit comments

Comments
 (0)