summaryrefslogtreecommitdiffstats
path: root/src/Blocks/BlockGrass.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Do not fake a tool when converting to pickups (#5170)Tiger Wang2021-03-281-1/+1
| | | | | * When the cause of destruction was world-induced (CanBeAt check failed) there is no tool. Pass the nullptr directly to ConvertToPickups and let it handle it. * Fixes #4795 - Remove unused a_Digger parameter to ConvertToPickups.
* Fix cmake not adding Werror on clang, and _lots_ of warnings (#4963)peterbell102020-10-051-1/+1
| | | | | | | | | | | | | | | * Fix cmake not adding Werror on clang, and _lots_ of warnings * WIP: Build fixes * Cannot make intermediate blockhandler instance * Tiger's changes * Fix BitIndex check * Handle invalid NextState values in cMultiVersionProtocol Co-authored-by: Tiger Wang <ziwei.tiger@outlook.com>
* Grass spread: check chunk & light validity correctlyTiger Wang2020-09-251-2/+2
|
* Unify block entity pickup conversionTiger Wang2020-09-251-1/+1
| | | | | - Removed normal BlockHandler knowledge of block entities during conversion + Added cBlockEntity::ConvertToPickups that handles it
* BlockHandler initialisation is a constant expression (#4891)Tiger Wang2020-09-201-15/+8
| | | | | | | | | | | | | * BlockHandler initialisation is a constant expression If we can't make it all namespaces, this is the next best I guess. + Tag handlers constexpr, const as needed + Inherit constructors * Privatise handler functions * More constexpr Co-authored-by: Alexander Harkness <me@bearbin.net>
* Comment capitalisationTiger Wang2020-07-061-2/+2
|
* Use enum to represent light statesTiger Wang2020-07-061-19/+34
|
* Made grass spreader prettierTiger Wang2020-07-061-63/+89
|
* Vector3 in Handlers (#4680)Mattes D2020-04-211-12/+13
| | | Refactored all cBlockHandler and cItemHandler descendants to use Vector3.
* More Vector3 in cBlockHandler (#4644)Mattes D2020-04-171-25/+29
| | | | | * cBlockHandler.OnUpdate uses Vector3 params. Also slightly changed how block ticking works.
* Silk touch pickaxe drops grass block (#4485)Mat2020-03-171-0/+131