summaryrefslogtreecommitdiffstats
path: root/src/Blocks/BlockFluid.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Valid Height is now checked by vector.x12xx12x2022-04-201-2/+2
|
* Move item placement into item handlers (#5184)Tiger Wang2021-05-051-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | * Move item placement into item handlers + Add appropriate CanBeAt checks in cPlayer::PlaceBlocks, into which all placement handlers call. * Partly addresses #5157 * Fixes #4878 * Fixes #2919 * Fixes #4629 * Fixes #4239 * Fixes #4849 Co-authored-by: changyong guo <guo1487@163.com> Co-authored-by: Xotheus <shady3300@outlook.com> Co-authored-by: Krist Pregracke <krist@tiger-scm.com> * Review fixes * Update APIDesc.lua * Rename Co-authored-by: changyong guo <guo1487@163.com> Co-authored-by: Xotheus <shady3300@outlook.com> Co-authored-by: Krist Pregracke <krist@tiger-scm.com>
* 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-33/+39
| | | | | | | | | | | | | | | * 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-22/+11
| | | | | | | | | | | | | * 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>
* Corrected wakeup sequencesTiger Wang2020-08-041-26/+0
| | | | | | | * Pistons/Ice no longer need to FastSetBlock first (#4600), and the former don't drop items when broken in creative - Begin migration away from stationary fluids * Tick the chunk after applying a client's changed * Broadcast pending blocks at the end of a tick
* More Vector3 in cBlockHandler (#4644)Mattes D2020-04-171-18/+39
| | | | | * cBlockHandler.OnUpdate uses Vector3 params. Also slightly changed how block ticking works.
* Using Super.Mattes D2020-04-161-9/+11
|
* Refactored block-to-pickup conversion. (#4417)Mattes D2019-10-161-5/+26
|
* BigFlower fixes (#3826)peterbell102017-07-071-1/+1
| | | | | | | * BigFlowers fixes * Correct upper part meta * Documented parameters to DoesIgnoreBuildCollision
* Added some blocks and items (#3503)mathiascode2017-02-141-0/+1
|
* Bulk clearing of whitespaceLogicParrot2016-02-051-8/+8
|
* * Logic for handling plant growth has been centralized into cBlockPlant, and all growable plants now inherit from it.Samuel Barney2015-08-191-0/+16
| | | | * Blocks now have an effect upon plant growth, just like in vanilla.
* Improved mapsTiger Wang2015-07-141-7/+19
|
* Rebased version of CodeSamuel Barney2015-06-221-6/+0
|
* Correct world height validations.Tommy Santerre2015-03-201-2/+2
| | | | | 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
* Basic style fixes.madmaxoft2014-07-171-1/+1
|
* Superfluous method override.Howaner2014-05-071-6/+0
|
* Add lava and water check to block handlers.Howaner2014-05-071-0/+12
|
* With eXtra line!Tiger Wang2014-04-021-0/+1
|
* Removed extra bracketsTiger Wang2014-04-021-5/+2
|
* Realised suggestionsTiger Wang2014-03-311-1/+4
|
* Fixed a few Y too high/low assertsTiger Wang2014-03-311-2/+3
|
* Changed Signiture of OnUpdateTycho2014-02-021-3/+3
|
* Changed pointers to referencesTycho2014-02-011-1/+1
|
* Changed signitures of Several BLockHandler MethodsTycho2014-02-011-2/+2
| | | | | | | | | | | | | Changed the signitures of the following to use interfaces: GetPlacementBlockTypeMeta OnPlaced OnPlacedByPlayer OnDestroyed OnNeighbourChanged NeighbourChanged OnUse CanBeAt Check
* Lava can spawn fire.madmaxoft2013-12-041-0/+81
| | | | Settable in world.ini, lava can spawn fire to fuel blocks near it. Fix #65.
* Moved source to srcAlexander Harkness2013-11-241-0/+56