summaryrefslogtreecommitdiffstats
path: root/src/Inventory.cpp (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Replace buckets to the selected hotbar slot, rather than the first available. (#4580)Alexander Harkness2020-04-021-18/+74
| | | | | | | | | | | | | | | | | | | | | | | | * 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
* CheckBasicStyle: Check number of empty lines between functions (#4267)peterbell102018-07-261-0/+2
| | | | Add check for number of empty lines between functions and fix the corresponding failures
* Fix typo in #4095.Alexander Lyons Harkness2017-12-211-2/+1
| | | | The build was being broken.
* cInventory: Add listener to shield slot. (#4095)peterbell102017-12-211-0/+6
|
* Off-hand/shield slot functional, save and load slot, bow + arrow functional (#3725)Pablo Beltrán2017-05-241-7/+50
| | | Fixes #3714.
* Proper entity destruction in non-ticking chunksLogicParrot2016-02-191-1/+1
|
* Bulk clearing of whitespaceLogicParrot2016-02-051-16/+16
|
* Fix old style casts and implicit conversionsMatti Hänninen2015-08-121-1/+1
|
* Silenced and fixed many warning messages across multiple files.Samuel Barney2015-07-291-3/+3
|
* Improved mapsTiger Wang2015-07-141-14/+2
|
* Merge branch 'master' into PreventNewWarningstycho2015-05-281-5/+26
|\ | | | | | | | | Conflicts: src/Inventory.cpp
| * Fixes #2052Tiger Wang2015-05-181-4/+26
| |
* | Make -Werror disabling file onlytycho2015-05-191-1/+1
|/ | | | Ad fix a load of warnings
* CheckBasicStyle: checks spaces around * and &.Mattes D2015-05-091-1/+1
|
* Fixed reported parentheses around comparisons.Mattes D2014-12-051-2/+6
|
* En masse NULL -> nullptr replaceTiger Wang2014-10-231-6/+6
|
* Type warning fixes.Mattes D2014-08-251-1/+1
|
* Merge pull request #1236 from Howaner/Inventory2Mattes D2014-07-271-6/+10
|\ | | | | Fix item durability.
| * Fix item durability.Howaner2014-07-231-6/+10
| | | | | | Fixes #1181
* | Merge branch 'master' into InventoryHowaner2014-07-261-10/+28
|\|
| * Style: Normalized to no spaces before closing parenthesis.madmaxoft2014-07-211-8/+8
| |
| * Style: Normalized spaces after if, for and while.madmaxoft2014-07-211-7/+7
| |
| * Added RemoveItem() function to the player inventory.Howaner2014-07-181-0/+18
| |
* | Add armor items directly to the armor slots.Howaner2014-07-201-0/+13
| |
* | Fixed the armor slot in creative mode. Also removed that armor get directly to the armor slot. It is extremely buggy and unnecessary.Howaner2014-07-181-9/+0
|/
* Fixed spaces around single-line comments.madmaxoft2014-07-171-2/+2
| | | | There should be at least two spaces in front and one space after //-style comments.
* Add DIG_STATUS_CANCELLED packet and add item resend, when a block can't place/break.Howaner2014-05-091-0/+10
|
* Send item back to the client when the item get damage.Howaner2014-05-071-0/+1
|
* Broadcast the Equipped Item, if the Slot is changed.Howaner2014-03-061-0/+6
|
* Map item handler; Fixed several bugsandrew2014-02-171-0/+25
|
* Removed obsoleted functionsTiger Wang2014-01-161-1/+1
|
* fixed warnings in Inventory.cppTycho Bickerstaff2013-12-311-2/+2
|
* Fixed VC2008 compilation, normalized include paths.madmaxoft2013-11-271-1/+1
|
* Fixed loads more of them.Alexander Harkness2013-11-261-1/+1
|
* Attempt to fix compilationTiger Wang2013-11-241-1/+1
|
* Moved source to srcAlexander Harkness2013-11-241-0/+682