From b70eb60afdbded75cb60e5345c8ffe96cac6bfce Mon Sep 17 00:00:00 2001 From: IntegratedQuantum Date: Sun, 27 Apr 2025 12:30:04 +0200 Subject: [PATCH] Remove items that don't have a material from the tool grid. fixes #1353 --- src/items.zig | 1 + 1 file changed, 1 insertion(+) diff --git a/src/items.zig b/src/items.zig index 99a29ec5..c5cbd6b8 100644 --- a/src/items.zig +++ b/src/items.zig @@ -520,6 +520,7 @@ pub const Tool = struct { // MARK: Tool var items: [25]?*const BaseItem = undefined; for(&items, 0..) |*item, i| { item.* = reverseIndices.get(zonArray.getAtIndex([]const u8, i, "null")); + if(item.* != null and item.*.?.material == null) item.* = null; } return items; }