summaryrefslogtreecommitdiffstats
path: root/src/Blocks/BlockIce.h (unfollow)
Commit message (Collapse)AuthorFilesLines
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-10-09added check if the digger is a nullptr (#4981)12xx121-0/+1
Co-authored-by: 12xx12 <12xx12100@gmail.com>
2020-10-08Merged OnBreak with OnPlayerBreak (#4967)12xx121-1/+6
Co-authored-by: 12xx12 <12xx12100@gmail.com> Co-authored-by: Tiger Wang <ziwei.tiger@outlook.com>
2020-10-05Fix cmake not adding Werror on clang, and _lots_ of warnings (#4963)peterbell101-2/+2
* 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-24Fix ice behaviour in world (#4927)12xx121-2/+49
+ Added proper ice melting under light influence Co-authored-by: Tiger Wang <ziwei.tiger@outlook.com>
2020-09-20BlockHandler initialisation is a constant expression (#4891)Tiger Wang1-7/+6
* 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-08-04Corrected wakeup sequencesTiger Wang1-16/+3
* 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
2020-04-16Using Super.Mattes D1-2/+2
2020-04-03New hotfix to prevent calling OnBroken (#4600)Alexander Harkness1-0/+2
* Fix stack overflow in breaking ice. Stupid fix, but it does work and is used in other places too... * Replace hotfix for pistons with better one * Fix comments in BlockBed handler
2019-10-16Refactored block-to-pickup conversion. (#4417)Mattes D1-16/+37
2017-11-20cChunkInterface GetBlock, GetBlockMeta, GetBlockTypeMeta use vectors (#4050)Bond-0091-1/+1
2017-08-06Removed unneeded includes (#3902)Lukas Pioch1-1/+0
2017-08-01cBlockHandler: take player by refpeterbell101-3/+3
2016-08-28Fix breaking ice in survival not giving a water's source (#3356)ElNounch1-2/+1
Fix #3355
2016-02-05Bulk clearing of whitespaceLogicParrot1-2/+2
2015-07-14Improved mapsTiger Wang1-2/+6
2014-08-19Changed if for switchJaume Aloy1-1/+1
2014-08-19Added more enchantments and some fixesJaume Aloy1-12/+12
- Removed Debug messages - Added Punch enchantment effect - Added Silk Touch enchantment - Added Unbreaking enchantment effect
2014-07-31Changed IsSolid to FullyOccupiesVoxelHowaner1-1/+1
2014-07-31Fixed water from ice and removed packed ice drop.Howaner1-2/+12
2014-07-17Basic style fixes.madmaxoft1-1/+1
2014-02-01Changed pointers to referencesTycho1-2/+2
2014-02-01Changed signitures of Several BLockHandler MethodsTycho1-2/+2
Changed the signitures of the following to use interfaces: GetPlacementBlockTypeMeta OnPlaced OnPlacedByPlayer OnDestroyed OnNeighbourChanged NeighbourChanged OnUse CanBeAt Check
2013-11-24Moved source to srcAlexander Harkness1-0/+0
2013-08-14Buncha bugfixes [SEE DESC]Tiger Wang1-1/+1
Fixed generation values not being written Fixed piston being able to push water Fixed ice creating a non-source block (still doesn't update though) Removed problematic piston code
2013-07-29Changed everyting to Unix line endings.Alexander Harkness1-37/+37
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-9/+20
( 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-2/+2
git-svn-id: http://mc-server.googlecode.com/svn/trunk@887 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-07-16Some code improvementslapayo94@gmail.com1-2/+2
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/+26
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