summaryrefslogtreecommitdiff
path: root/src/player.cpp
diff options
context:
space:
mode:
authorSmallJoker <mk939@ymail.com>2018-05-09 22:24:36 +0200
committerSmallJoker <mk939@ymail.com>2018-10-04 20:42:38 +0200
commitd77f3b3fdeb0da2a69547594b5a75570a54b02d1 (patch)
tree14027e2bb0d42b5698f2c738aa1b11e9e7356b4e /src/player.cpp
parent1413b722a72d475e8f6cc6febbb5479504b90c04 (diff)
downloadminetest-d77f3b3fdeb0da2a69547594b5a75570a54b02d1.tar.gz
minetest-d77f3b3fdeb0da2a69547594b5a75570a54b02d1.tar.bz2
minetest-d77f3b3fdeb0da2a69547594b5a75570a54b02d1.zip
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.
Diffstat (limited to 'src/player.cpp')
-rw-r--r--src/player.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/player.cpp b/src/player.cpp
index b700053e8..ccc753834 100644
--- a/src/player.cpp
+++ b/src/player.cpp
@@ -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);