Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Clean up CanBeAt Functions (#5587) | Alexander Harkness | 30 hours | 1 | -1/+1 |
| | | | | | | | * Use cChunkDef::IsValidHeight for CanBeAt functions, and related helpers. * Add mixins for SolidSurfaceUnderneat and DirtLikeUnderneath * Minor fixes after change review. | ||||
* | Re-implement up/down placement metadata (#5219) | Tiger Wang | 2021-05-14 | 1 | -2/+6 |
| | | | | + Use player position when placing blocks which can face up or down, seems to better correspond to Vanilla behaviour. * Fixes #4651 | ||||
* | Move item placement into item handlers (#5184) | Tiger Wang | 2021-05-05 | 1 | -5/+0 |
| | | | | | | | | | | | | | | | | | | | | | | | | | * 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> | ||||
* | Improve bed handling robustness | Tiger Wang | 2021-04-12 | 1 | -17/+28 |
| | | | | + Boot the player out if the bed was destroyed | ||||
* | Do not fake a tool when converting to pickups (#5170) | Tiger Wang | 2021-03-28 | 1 | -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. | ||||
* | Merged OnBreak with OnPlayerBreak (#4967) | 12xx12 | 2020-10-08 | 1 | -1/+2 |
| | | | | 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) | peterbell10 | 2020-10-05 | 1 | -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> | ||||
* | Unify block entity pickup conversion | Tiger Wang | 2020-09-25 | 1 | -6/+1 |
| | | | | | - Removed normal BlockHandler knowledge of block entities during conversion + Added cBlockEntity::ConvertToPickups that handles it | ||||
* | BlockHandler initialisation is a constant expression (#4891) | Tiger Wang | 2020-09-20 | 1 | -43/+30 |
| | | | | | | | | | | | | | * 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> | ||||
* | Update bed behavior (#4545) | Mat | 2020-08-05 | 1 | -0/+6 |
| | |||||
* | Vector3 in Handlers (#4680) | Mattes D | 2020-04-21 | 1 | -4/+24 |
| | | | Refactored all cBlockHandler and cItemHandler descendants to use Vector3. | ||||
* | Using Super. | Mattes D | 2020-04-16 | 1 | -2/+2 |
| | |||||
* | Replace all single-digit hex constants with two-digit version | Alexander Harkness | 2020-04-10 | 1 | -2/+2 |
| | |||||
* | Add mixins for blocks that rotate based on player yaw at placement | Alexander Harkness | 2020-04-10 | 1 | -20/+2 |
| | | | | Also add observer block handler. | ||||
* | Moved growing from cWorld / cChunk to cBlockHandler descendants. | Mattes D | 2019-10-28 | 1 | -2/+2 |
| | |||||
* | Refactored block-to-pickup conversion. (#4417) | Mattes D | 2019-10-16 | 1 | -15/+29 |
| | |||||
* | cChunkInterface GetBlock, GetBlockMeta, GetBlockTypeMeta use vectors (#4050) | Bond-009 | 2017-11-20 | 1 | -1/+1 |
| | |||||
* | Bed piston fix (#3956) | Lane Kolbly | 2017-08-25 | 1 | -1/+1 |
| | | | | | | | | | | | | * Threaded world interface into ConvertBlockToPickups * Changed how cBlockPiston::PushBlocks sets the old block to air, so that the block exists for the DropBlock call. * Removed unused a_Digger argument. * Removed incorrect comment * This time actually removed a_Digger references. | ||||
* | Replaced includes with forward declarations | Lukas Pioch | 2017-08-13 | 1 | -1/+1 |
| | |||||
* | Removed unneeded includes (#3902) | Lukas Pioch | 2017-08-06 | 1 | -2/+0 |
| | |||||
* | cBlockHandler: take player by ref | peterbell10 | 2017-08-01 | 1 | -2/+2 |
| | |||||
* | Added bed entity (#3823) | Lukas Pioch | 2017-07-07 | 1 | -8/+13 |
| | | | | | | | | | | * Added bed entity * Export cBedEntity to lua * Set color of bed through item damage value * Added bed entity to APIDoc * NBT: Added loading and saving * Crafting recipes for the colored beds | ||||
* | Bulk clearing of whitespace | LogicParrot | 2016-02-05 | 1 | -2/+2 |
| | |||||
* | allow use failures to propagate from the entity/block to the player | Gargaj | 2015-12-13 | 1 | -1/+1 |
| | |||||
* | Improved maps | Tiger Wang | 2015-07-14 | 1 | -1/+6 |
| | |||||
* | Rebased version of Code | Samuel Barney | 2015-06-22 | 1 | -5/+0 |
| | |||||
* | Made -Weverything an error. | tycho | 2015-05-24 | 1 | -1/+1 |
| | |||||
* | Handle client 'leave bed' request | Tiger Wang | 2015-02-08 | 1 | -8/+17 |
| | | | | * Fixes #1728 | ||||
* | Refactored all player block placing to go through hooks. | Mattes D | 2014-12-24 | 1 | -1/+0 |
| | | | | Fixes #1618. | ||||
* | BasicStyle: Added missing braces to control statements. | Mattes D | 2014-12-05 | 1 | -1/+4 |
| | |||||
* | Removed more unessicary includes | Tycho | 2014-09-26 | 1 | -3/+5 |
| | |||||
* | Fixed style: spaces after commas. | madmaxoft | 2014-07-19 | 1 | -1/+1 |
| | |||||
* | Rename CanChangeDirtToGrass to CanDirtGrowGrass | Howaner | 2014-05-07 | 1 | -1/+1 |
| | |||||
* | Add CanChangeDirtToGrass function to Block Handlers. | Howaner | 2014-04-06 | 1 | -0/+7 |
| | |||||
* | Fixed spelling; Rotater to Rotator. | narroo | 2014-03-25 | 1 | -3/+3 |
| | |||||
* | Reformatted | Tycho | 2014-03-02 | 1 | -2/+2 |
| | |||||
* | Implemented Rotations | Tycho | 2014-03-01 | 1 | -2/+2 |
| | |||||
* | Added some Metadate rotaters using templated Mixin | Tycho | 2014-02-27 | 1 | -2/+3 |
| | |||||
* | Improved Type safety of eBlockFace | Tycho | 2014-02-04 | 1 | -2/+2 |
| | | | | May Fix #640 | ||||
* | Changed pointers to references | Tycho | 2014-02-01 | 1 | -3/+3 |
| | |||||
* | Changed signitures of Several BLockHandler Methods | Tycho | 2014-02-01 | 1 | -1/+1 |
| | | | | | | | | | | | | | Changed the signitures of the following to use interfaces: GetPlacementBlockTypeMeta OnPlaced OnPlacedByPlayer OnDestroyed OnNeighbourChanged NeighbourChanged OnUse CanBeAt Check | ||||
* | Refactored cBlockHandler::OnUse and dependents | Tycho | 2014-01-26 | 1 | -1/+1 |
| | |||||
* | First attempt at Implementing Interfaces | Tycho | 2014-01-25 | 1 | -4/+5 |
| | |||||
* | Moved source to src | Alexander Harkness | 2013-11-24 | 1 | -0/+67 |