refactor Content

This commit is contained in:
MihailRis
2024-06-25 22:37:53 +03:00
parent f3c5afa1ab
commit ee9f1639e9
25 changed files with 180 additions and 209 deletions
+1 -1
View File
@@ -9,7 +9,7 @@
using namespace scripting;
static void validate_itemid(itemid_t id) {
if (id >= indices->countItemDefs()) {
if (id >= indices->items.count()) {
throw std::runtime_error("invalid item id");
}
}