summaryrefslogtreecommitdiffstats
path: root/src/Inventory.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Replace buckets to the selected hotbar slot, rather than the first available. (#4580)Alexander Harkness2020-04-021-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | * Replace buckets to the selected hotbar slot, rather than the first available. Replicates vanilla behaviour, as well as being more logical. * Refactor cInventory::AddItem. Behaviour is now documented * Add new cInventory::ReplaceOneEquippedItem and ::SetEquippedItem methods * Return empty potion to the same slot after drinking * Replace buckets correctly in other situations, not simply water and lava Uses the new ReplaceOneEquippedItem method * Correct collecting water from source block with bottle * Add cPlayer::ReplaceOneEquippedItemTossRest method * Handle stacked filled buckets (in theory) Use new cPlayer::ReplaceOneEquippedItemTossRest method
* Removed unused forward declarations (#3888)Lukas Pioch2017-08-031-1/+0
|
* Off-hand/shield slot functional, save and load slot, bow + arrow functional (#3725)Pablo Beltrán2017-05-241-2/+19
| | | Fixes #3714.
* Clang 5.0 fixesLukas Pioch2017-05-211-1/+1
| | | | | - Added override keyword - Removed inherited member variables
* Updated API documentation.Mattes D2016-07-181-2/+2
|
* Bulk clearing of whitespaceLogicParrot2016-02-051-25/+25
|
* Fixes #2052Tiger Wang2015-05-181-8/+2
|
* CheckBasicStyle: checks spaces around * and &.Mattes D2015-05-091-1/+1
|
* Removed unwanted base classes from Lua API.Mattes D2015-03-191-0/+2
|
* En masse NULL -> nullptr replaceTiger Wang2014-10-231-2/+2
|
* Gave names to unnamed enumsarchshift2014-08-111-2/+2
|
* Style: Normalized to no spaces before closing parenthesis.madmaxoft2014-07-211-1/+1
|
* Clarified RemoveItem()'s comments.madmaxoft2014-07-181-1/+2
|
* Added RemoveItem() function to the player inventory.Howaner2014-07-181-0/+3
|
* Fixed basic whitespace problems.madmaxoft2014-07-171-1/+1
| | | | Indenting by spaces and alignment by spaces, as well as trailing whitespace on non-empty lines.
* Add DIG_STATUS_CANCELLED packet and add item resend, when a block can't place/break.Howaner2014-05-091-19/+22
|
* Fixed non-virtual destructors warnings.madmaxoft2014-03-281-0/+2
|
* Map item handler; Fixed several bugsandrew2014-02-171-0/+3
|
* Moved source to srcAlexander Harkness2013-11-241-0/+182