mirror of
https://github.com/PixelGuys/Cubyz.git
synced 2025-08-03 11:17:05 -04:00
Remove items that don't have a material from the tool grid.
fixes #1353
This commit is contained in:
parent
db767b9c30
commit
b70eb60afd
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user