mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-16 18:01:40 +00:00
Fixed some problems with crafting and inventory
This commit is contained in:
parent
81ac026e1f
commit
249c0dc68a
6 changed files with 75 additions and 34 deletions
|
@ -455,6 +455,9 @@ public:
|
|||
// Count used slots
|
||||
u32 getUsedSlots();
|
||||
u32 getFreeSlots();
|
||||
|
||||
/*bool getDirty(){ return m_dirty; }
|
||||
void setDirty(bool dirty=true){ m_dirty = dirty; }*/
|
||||
|
||||
// Get pointer to item
|
||||
InventoryItem * getItem(u32 i);
|
||||
|
@ -490,6 +493,7 @@ private:
|
|||
core::array<InventoryItem*> m_items;
|
||||
u32 m_size;
|
||||
std::string m_name;
|
||||
//bool m_dirty;
|
||||
};
|
||||
|
||||
class Inventory
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue