summaryrefslogtreecommitdiffstats
path: root/src/Blocks/BlockIce.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* added check if the digger is a nullptr (#4981)12xx122020-10-091-0/+1
| | | Co-authored-by: 12xx12 <12xx12100@gmail.com>
* Merged OnBreak with OnPlayerBreak (#4967)12xx122020-10-081-1/+6
| | | | Co-authored-by: 12xx12 <12xx12100@gmail.com> Co-authored-by: Tiger Wang <ziwei.tiger@outlook.com>
* Fix cmake not adding Werror on clang, and _lots_ of warnings (#4963)peterbell102020-10-051-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>
* 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
* Fix ice behaviour in world (#4927)12xx122020-09-241-2/+49
| | | | | + Added proper ice melting under light influence Co-authored-by: Tiger Wang <ziwei.tiger@outlook.com>
* BlockHandler initialisation is a constant expression (#4891)Tiger Wang2020-09-201-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>
* Corrected wakeup sequencesTiger Wang2020-08-041-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
* Using Super.Mattes D2020-04-161-2/+2
|
* New hotfix to prevent calling OnBroken (#4600)Alexander Harkness2020-04-031-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
* Refactored block-to-pickup conversion. (#4417)Mattes D2019-10-161-16/+37
|
* cChunkInterface GetBlock, GetBlockMeta, GetBlockTypeMeta use vectors (#4050)Bond-0092017-11-201-1/+1
|
* Removed unneeded includes (#3902)Lukas Pioch2017-08-061-1/+0
|
* cBlockHandler: take player by refpeterbell102017-08-011-3/+3
|
* Fix breaking ice in survival not giving a water's source (#3356)ElNounch2016-08-281-2/+1
| | | Fix #3355
* Bulk clearing of whitespaceLogicParrot2016-02-051-2/+2
|
* Improved mapsTiger Wang2015-07-141-2/+6
|
* Changed if for switchJaume Aloy2014-08-191-1/+1
|
* Added more enchantments and some fixesJaume Aloy2014-08-191-12/+12
| | | | | | | - Removed Debug messages - Added Punch enchantment effect - Added Silk Touch enchantment - Added Unbreaking enchantment effect
* Changed IsSolid to FullyOccupiesVoxelHowaner2014-07-311-1/+1
|
* Fixed water from ice and removed packed ice drop.Howaner2014-07-311-2/+12
|
* Basic style fixes.madmaxoft2014-07-171-1/+1
|
* Changed pointers to referencesTycho2014-02-011-2/+2
|
* 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
* Moved source to srcAlexander Harkness2013-11-241-0/+37