summaryrefslogtreecommitdiffstats
path: root/src/Blocks/BlockFire.h (unfollow)
Commit message (Collapse)AuthorFilesLines
2021-05-05Move item placement into item handlers (#5184)Tiger Wang1-9/+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>
2021-03-28Do not fake a tool when converting to pickups (#5170)Tiger Wang1-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.
2020-12-18Added dimension check to nether portal (#5068)cflep1-0/+6
+ Added dimension check to nether portal
2020-10-05Fix cmake not adding Werror on clang, and _lots_ of warnings (#4963)peterbell101-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>
2020-09-25Unify block entity pickup conversionTiger Wang1-1/+1
- Removed normal BlockHandler knowledge of block entities during conversion + Added cBlockEntity::ConvertToPickups that handles it
2020-09-20BlockHandler initialisation is a constant expression (#4891)Tiger Wang1-34/+36
* 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>
2020-05-15Enable some more clang-tidy linter checks (#4738)peterbell101-2/+0
* Avoid inefficient AString -> c_str() -> AString round trip * Avoid redundant string init expressions * Avoid unnecessary return, continue, etc. * Add .clang-format to help with clang-tidy fix-its * Avoid unnecessary passing by value * Avoid unnecessary local copying * Avoid copying in range-for loops * Avoid over-complicated boolean expressions * Some violations missed by my local clang-tidy * Allow unnecessary continue statements * Add brackets * Another expression missed locally * Move BindingsProcessor call into clang-tidy.sh and add space * Fix pushd not found error * Different grouping of CheckBlockInteractionRate
2019-10-16Refactored block-to-pickup conversion. (#4417)Mattes D1-4/+22
2017-11-20cChunkInterface GetBlock, GetBlockMeta, GetBlockTypeMeta use vectors (#4050)Bond-0091-7/+7
2017-07-07BigFlower fixes (#3826)peterbell101-1/+1
* BigFlowers fixes * Correct upper part meta * Documented parameters to DoesIgnoreBuildCollision
2016-02-05Bulk clearing of whitespaceLogicParrot1-1/+1
2015-07-14Improved mapsTiger Wang1-3/+9
2015-06-28Added a size check for portals.STRWarrior1-0/+14
Made the portal size configurable Alpha-sorted SetXYZNetherPortalXYZ functions
2015-06-14implemented DoesIgnoreBuildCollision on BlockFire to allow blocks to be placed on topMartin McArthur1-0/+5
2015-05-09More style checking.Mattes D1-3/+3
Spaces around some operators are checked.
2015-01-23Fixed defect #43661 in Coverity list.Kirill Kirilenko1-1/+2
2014-09-12Fixed farmland issues.Howaner1-2/+2
2014-09-09Moved sound-configs into BlockID.h and fixed/ added loads of soundsMasy981-5/+0
2014-08-19Code formatting fixes.Howaner1-10/+15
2014-08-11Moved the clicked-through block check to the top of the function.Howaner1-5/+0
2014-07-17Normalized comments.madmaxoft1-16/+16
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.
2014-05-28Fix fire break.Howaner1-2/+2
2014-05-04Fixed portal Z direction loop coding failureTiger Wang1-10/+9
* Fixed portals created in the ZP/ZM direction eating its frame * Changed return type of a function
2014-03-30Fixed a few Clang warnings in BlockHandlers.madmaxoft1-10/+12
2014-02-01Changed Signiture of OnDiggingTycho1-2/+2
2014-02-01Changed pointers to referencesTycho1-15/+15
2014-02-01Changed signitures of Several BLockHandler MethodsTycho1-28/+28
Changed the signitures of the following to use interfaces: GetPlacementBlockTypeMeta OnPlaced OnPlacedByPlayer OnDestroyed OnNeighbourChanged NeighbourChanged OnUse CanBeAt Check
2013-12-10fixed unused expression warnings in blockFireTycho Bickerstaff1-7/+6
2013-11-24Moved source to srcAlexander Harkness1-0/+0
2013-11-02Flipped some variables in PortalsTiger Wang1-2/+2
To make them work on the X axis.
2013-11-02Split border finder into separate functionTiger Wang1-10/+16
2013-11-02Implement suggestionsTiger Wang1-15/+15
- Removed unneeded parameter * Changed 0 - 1 to -1
2013-11-02Fixed compile error (portals)Tiger Wang1-2/+182
WITH A FULL REFORK
2013-07-29Changed everyting to Unix line endings.Alexander Harkness1-42/+42
2012-10-03Moved blockticking into blockhandler classes.madmaxoft@gmail.com1-4/+4
Also slightly refactored the variable / argument names (BlockID is deprecated, use BlockType instead) git-svn-id: http://mc-server.googlecode.com/svn/trunk@921 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-10-01Slight refactoring of BlockHandlers - dropping unneeded virtual functionsmadmaxoft@gmail.com1-7/+16
( http://forum.mc-server.org/showthread.php?tid=434&pid=4734#pid4734 ) git-svn-id: http://mc-server.googlecode.com/svn/trunk@917 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-09-29Unified folder name-casingmadmaxoft@gmail.com1-0/+0
git-svn-id: http://mc-server.googlecode.com/svn/trunk@902 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-09-24Source files cleanup: The rest of the files renamed.madmaxoft@gmail.com1-1/+1
git-svn-id: http://mc-server.googlecode.com/svn/trunk@887 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-09-11Merged in a patch for sounds by l0udPLmadmaxoft@gmail.com1-2/+6
http://forum.mc-server.org/showthread.php?tid=434&pid=4564#pid4564 git-svn-id: http://mc-server.googlecode.com/svn/trunk@858 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-08-19Fixed Bug #236lapayo94@gmail.com1-1/+1
Workbench, Chest and Furnace are usable again git-svn-id: http://mc-server.googlecode.com/svn/trunk@755 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-07-16Some code improvementslapayo94@gmail.com1-4/+19
git-svn-id: http://mc-server.googlecode.com/svn/trunk@677 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-07-15A new Block handling system :olapayo94@gmail.com1-0/+14
It was really a lot of work :D Took me the complete weekend :D Would really like to here your opinion on this =) The aim of this is to put all the actions for one block in one place so it is not spread around the source. (ToPickup, Action in cWorld, Action in cChunk, Action here, action there :D) git-svn-id: http://mc-server.googlecode.com/svn/trunk@671 0a769ca7-a7f5-676a-18bf-c427514a06d6