1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

Player hand list: require init by mods

Mods will now have to initialize the list/slot in order to define the default player hand.
They may use the inventory callbacks to prevent abuse of this list.
This commit is contained in:
SmallJoker 2018-05-09 22:24:36 +02:00
parent 1413b722a7
commit d77f3b3fde
2 changed files with 3 additions and 2 deletions

View file

@ -36,7 +36,6 @@ Player::Player(const char *name, IItemDefManager *idef):
inventory.clear();
inventory.addList("main", PLAYER_INVENTORY_SIZE);
inventory.addList("hand", 1);
InventoryList *craft = inventory.addList("craft", 9);
craft->setWidth(3);
inventory.addList("craftpreview", 1);