added itemlock command, added TNT item, minor bugfixes

This commit is contained in:
2025-07-02 18:10:28 +02:00
parent ac3f81857f
commit a698cb25d5
11 changed files with 82 additions and 9 deletions

View File

@@ -10,7 +10,7 @@ export async function getUserRecord(user: User): Promise<userRecord> {
if (Object.keys(data.inventory).sort().toString() !== itemarray.sort().toString()) { // If the items in the user inventory are missing an item.
itemarray.forEach(key => {
if (!(key in data.inventory)) Object.defineProperty(data.inventory, key, { value: 0 });
if (!(key in data.inventory)) data.inventory[key] = 0;
});
};