InventoryView now uses items instead of blocks (part I)
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user