summaryrefslogtreecommitdiffstats
path: root/src/Blocks/BlockFarmland.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* 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>
* 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-12/+7
| | | | | | | | | | | | | * 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>
* Fix incorrect relative coords usage in farmland handler (#4690)peterbell102020-04-241-2/+2
|
* More Vector3 in cBlockHandler (#4644)Mattes D2020-04-171-13/+23
| | | | | * cBlockHandler.OnUpdate uses Vector3 params. Also slightly changed how block ticking works.
* Using Super.Mattes D2020-04-161-2/+2
|
* Fix certain item drops (#4536)Mat2020-03-231-2/+11
| | | | | | | | | | | * Fix certain item drops * Revert unwanted changes * Revert unwanted changes * Revert change * Style fixes
* Refactored block-to-pickup conversion. (#4417)Mattes D2019-10-161-13/+19
|
* cChunkInterface GetBlock, GetBlockMeta, GetBlockTypeMeta use vectors (#4050)Bond-0092017-11-201-1/+1
|
* Minor changes (#3909)mathiascode2017-08-241-1/+1
|
* Added some blocks and items (#3503)mathiascode2017-02-141-0/+2
|
* Fixed bindings for cBlockArea:Read and Write. (#3568)Mattes D2017-02-051-1/+1
| | | The original bindings accepted nil as the World param, causing a crash.
* Added HTTPS links wherever they are supported.Alexander Harkness2015-12-191-6/+2
|
* * Logic for handling plant growth has been centralized into cBlockPlant, and all growable plants now inherit from it.Samuel Barney2015-08-191-0/+11
| | | | * Blocks now have an effect upon plant growth, just like in vanilla.
* Some warning fixesJulian Laubstein2015-08-181-1/+1
|
* Added neighbor specification in the OnNeighborChanged() block callback.Mattes D2015-07-011-1/+12
| | | | | Fixes the OnNeighborChanged endless recursion with large melon / pumpkin fields. Fixes #2213.
* Correct world height validations.Tommy Santerre2015-03-201-1/+1
| | | | | Unify the way we test block above the current one (Height - 1 instead of a_RelY + 1). Allow generation of world of flat height = 255
* Fixed farmland issues.Howaner2014-09-121-44/+55
|
* Code formatting fixes.Howaner2014-08-191-4/+1
|
* Normalized comments.madmaxoft2014-07-171-1/+1
| | | | | This was mostly done automatically and then visually inspected for obvious errors. All //-style comments should have a 2-space separation from the code, and 1 space after the comment sign.
* Fixed some meta resetting bugsTiger Wang2014-07-141-4/+7
| | | | | * Fixes #1174 * Fixes #1171
* Fixed MSVC 64-bit build warnings.Mattes D2014-05-091-2/+2
|
* Fixed issues with farmlandTiger Wang2014-02-031-0/+2
| | | | | | * Fixed farmland reversion checks not taking into account carrots and potatoes * Fixed #623
* Changed Signiture of OnUpdateTycho2014-02-021-1/+1
|
* Changed cBlockHandler->OnUpdate() to use cChunk directly.madmaxoft2013-11-301-10/+13
|
* Moved source to srcAlexander Harkness2013-11-241-0/+107