InventoryView now uses items instead of blocks (part I)

This commit is contained in:
MihailRis
2024-01-08 15:45:03 +03:00
parent dd5cd55aeb
commit eae00dbb11
5 changed files with 36 additions and 21 deletions
+4
View File
@@ -2,6 +2,7 @@
#include <glm/glm.hpp>
#include "content/ItemDef.h"
#include "content/Content.h"
#include "window/Window.h"
#include "window/Events.h"
@@ -21,6 +22,9 @@ void setup_definitions(ContentBuilder* builder) { // Strange function, need to R
block->selectable = false;
block->model = BlockModel::none;
builder->add(block);
ItemDef* item = builder->createItem("core:empty");
item->iconType = item_icon_type::none;
}
void setup_bindings() {