summaryrefslogtreecommitdiffstats
path: root/src/Blocks/BlockDirt.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* 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-9/+4
| | | | | | | | | | | | | * 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>
* Using Super.Mattes D2020-04-161-2/+2
|
* Silk touch pickaxe drops grass block (#4485)Mat2020-03-171-100/+1
|
* Moved growing from cWorld / cChunk to cBlockHandler descendants.Mattes D2019-10-281-13/+21
|
* Refactored block-to-pickup conversion. (#4417)Mattes D2019-10-161-3/+11
|
* Force all headers other than "Globals.h" to be included with relative paths (#4269)peterbell102018-08-291-2/+2
| | | | | | | Closes #4236 CMake now creates a header file in the build directory under the path "include/Globals.h" which just includes "src/Globals.h" with an absolute path. Then instead of adding "src/" to the include directories, it adds "include/". #include "Globals.h" still works by including the build generated file and any other src-relative path will not work.
* Remove double includes part 2 (#3890)peterbell102017-08-031-1/+0
|
* FastRandom rewrite (#3754)peterbell102017-06-131-4/+4
|
* Prevented snow from killing grassLogicParrot2016-04-161-2/+4
|
* Updated cChunk::SetMeta, fixed grass growth, reduced markDirty/setMeta usageLogicParrot2016-04-161-6/+9
|
* Bulk clearing of whitespaceLogicParrot2016-02-051-6/+6
|
* Adjusted height validation using cChunkDef::IsValidHeight()Julian Laubstein2015-11-231-1/+1
|
* Improved mapsTiger Wang2015-07-141-3/+18
|
* Moved grabbing the light value to after the transparency check.Samuel Barney2015-07-031-3/+4
|
* Added missing parensSamuel Barney2015-07-031-1/+1
|
* Grass now only dies if it has an opaque block above it.Samuel Barney2015-07-031-4/+7
| | | | Grass only spreads to a dirt block if the light level is above 4 and the block above it is transparent.
* Rebased version of CodeSamuel Barney2015-06-221-19/+16
|
* 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 grass spread, closes #1743Tiger Wang2015-03-141-3/+3
| | | | | - Removed the salt parameter in cFastRandom functions, it wasn't doing what we thought it was following the move to C++11
* Grass checks for sufficient light before spreadingAlexander Harkness2015-03-051-1/+13
|
* En masse NULL -> nullptr replaceTiger Wang2014-10-231-1/+1
|
* Functions in cPluginManager get references instead of pointers.Mattes D2014-10-151-1/+1
|
* Code improvementsHowaner2014-09-301-2/+2
|
* Fixed 1.8 dirt typesHowaner2014-09-301-1/+9
|
* Removed more unessicary includesTycho2014-09-261-2/+2
|
* Moved sound-configs into BlockID.h and fixed/ added loads of soundsMasy982014-09-091-6/+0
|
* Code formatting fixes.Howaner2014-08-191-1/+1
|
* Add lava and water check to block handlers.Howaner2014-05-071-2/+2
|
* Rename CanChangeDirtToGrass to CanDirtGrowGrassHowaner2014-05-071-2/+2
|
* Remove old importHowaner2014-04-061-2/+1
|
* Add CanChangeDirtToGrass function to Block Handlers.Howaner2014-04-061-3/+3
|
* Merge branch 'master' into SlabsHowaner2014-04-031-8/+11
|\ | | | | | | | | Conflicts: src/Blocks/BlockDirt.h
| * Fixed a few Clang warnings in BlockHandlers.madmaxoft2014-03-301-5/+5
| |
| * Change SpreadSource prefix to ssHowaner2014-03-271-1/+1
| |
| * Add SpreadSourceHowaner2014-03-271-1/+4
| |
| * g_BlockXXX => cBlockInfo::XXXandrew2014-03-011-2/+2
| |
* | Remove old functionHowaner2014-04-031-6/+0
| |
* | Grass now grows under up-side-down slabsHowaner2014-04-031-3/+12
|/
* Changed Signiture of OnUpdateTycho2014-02-021-1/+1
|
* Removed cWorld IncludeTycho2014-01-261-1/+0
|
* Fixed assertion during dirt block OnUpdate()Tiger Wang2013-12-201-1/+1
|
* Changed cBlockHandler->OnUpdate() to use cChunk directly.madmaxoft2013-11-301-12/+20
|
* Grass doesn't spread to podzol or grassless dirt blocks.madmaxoft2013-11-301-2/+3
|
* Moved source to srcAlexander Harkness2013-11-241-0/+88