1
0
Files
cuberite-2a/src/Blocks
Alexander Harkness cdc452916e Replace buckets to the selected hotbar slot, rather than the first available. (#4580)
* 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
2020-04-02 12:42:15 +00:00
..
2015-07-14 21:46:30 +01:00
2020-03-23 22:07:08 +02:00
2020-03-23 13:45:09 +00:00
2020-03-23 22:07:08 +02:00
2015-07-14 21:46:30 +01:00
2017-08-01 08:21:20 +02:00