summaryrefslogtreecommitdiffstats
path: root/src/Blocks/BlockBed.cpp (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Force all headers other than "Globals.h" to be included with relative paths (#4269)peterbell102018-08-291-1/+1
| | | | | | | 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.
* Broadcast refactor (#4264)peterbell102018-07-241-2/+2
| | | | | | | | | | | | | | | | | | | | | | | * Move Broadcast functions from cChunkMap to cBroadcaster - Remove cBroadcastInterface in favour of cBroadcaster. - cChunk: Remove broadcast functions. * resurect broadcast interface * Absorb cBroadcaster into cWorld. Removes the need for forwarding the function calls. * Improve const-correctness * Use Int8 instead of char + Comment `ForClients` functions * Improve comments * Broadcaster: Rename ForClients functions
* cChunkInterface GetBlock, GetBlockMeta, GetBlockTypeMeta use vectors (#4050)Bond-0092017-11-201-6/+5
|
* Removed UTF-8 BOM (#4033)Lukas Pioch2017-09-191-1/+1
|
* Replace ItemCallbacks with lambdas (#3993)peterbell102017-09-111-95/+35
|
* Revert "Replace ItemCallbacks with lambdas (#3948)"LogicParrot2017-09-021-35/+95
| | | | This reverts commit 496c337cdfa593654018c171f6a74c28272265b5.
* Replace ItemCallbacks with lambdas (#3948)peterbell102017-09-011-95/+35
|
* Bed piston fix (#3956)Lane Kolbly2017-08-251-2/+2
| | | | | | | | | | | | * 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.
* Minor changes (#3909)mathiascode2017-08-241-1/+1
|
* Removed double includes (#3885)Lukas Pioch2017-08-021-1/+0
|
* cBlockHandler: take player by refpeterbell102017-08-011-14/+14
|
* Added bed entity (#3823)Lukas Pioch2017-07-071-2/+60
| | | | | | | | | | * 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
* You can't use beds when there are hostile mobs nearbyBond_0092017-07-021-8/+32
|
* allow use failures to propagate from the entity/block to the playerGargaj2015-12-131-1/+2
|
* Bed uses bottom two bits for direction not threeworktycho2015-05-161-2/+2
|
* Reverted non-functional changesTiger Wang2015-03-051-5/+8
|
* Handle client 'leave bed' requestTiger Wang2015-02-081-17/+10
| | | | * Fixes #1728
* Refactored all player block placing to go through hooks.Mattes D2014-12-241-19/+1
| | | | Fixes #1618.
* Removed more unessicary includesTycho2014-09-261-0/+9
|
* Fixed farmland issues.Howaner2014-09-121-1/+1
|
* Merge remote-tracking branch 'origin/master' into portalsTiger Wang2014-07-221-3/+3
|\ | | | | | | | | | | | | | | Conflicts: src/Chunk.cpp src/Entities/Player.cpp src/Root.cpp src/World.cpp
| * Style: Normalized to no spaces before closing parenthesis.madmaxoft2014-07-211-2/+2
| |
| * Fixed style: spaces after commas.madmaxoft2014-07-191-1/+1
| |
* | Merge branch 'master' into portalsTiger Wang2014-07-181-6/+6
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/Blocks/WorldInterface.h src/ClientHandle.cpp src/ClientHandle.h src/Entities/Player.cpp src/Entities/Player.h src/Generating/FinishGen.cpp src/Protocol/Protocol.h src/Protocol/Protocol125.cpp src/Protocol/Protocol125.h src/Protocol/Protocol16x.cpp src/Protocol/Protocol16x.h src/Protocol/Protocol17x.cpp src/Protocol/Protocol17x.h src/Protocol/ProtocolRecognizer.cpp src/Protocol/ProtocolRecognizer.h src/Root.h src/World.cpp
| * Basic style fixes.madmaxoft2014-07-171-2/+2
| |
| * Normalized comments.madmaxoft2014-07-171-4/+4
| | | | | | | | | | 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.
* | Implemented bed homesTiger Wang2014-06-011-0/+2
| | | | | | | | | | | | + Implemented bed home positions * Fixed some inventory and health server/client mismatches after world change
* | Very minor code changesTiger Wang2014-05-291-1/+1
|/
* Fixed VERIFYTiger Wang2014-03-091-1/+1
|
* Beds now work properly fixes #707Tiger Wang2014-03-091-7/+66
| | | | | | | | Also fixes FS392 Conflicts: src/Blocks/WorldInterface.h src/ClientHandle.cpp
* BlockBed.cpp: Fixed space at if statementTheJumper2014-02-201-1/+1
| | | Added a space after an if statement and before the first bracket to keep up code conventions.
* BlockBed.cpp: Fixed Multiple people in one bed.TheJumper2014-02-201-7/+18
| | | OnUse in BlockBed.cpp now checks whether bit flag 0x4 in the Data values of the bed is set before somebody can try to sleep in the bed.
* Merge branch 'master' into playerimprovementsTiger Wang2014-02-091-2/+2
|\ | | | | | | | | Conflicts: MCServer/Plugins/APIDump/APIDesc.lua
| * Improved Type safety of eBlockFaceTycho2014-02-041-2/+2
| | | | | | | | May Fix #640
* | Server internally uses new functionsTiger Wang2014-02-061-1/+1
|/
* Changed pointers to referencesTycho2014-02-011-16/+16
|
* Changed signitures of Several BLockHandler MethodsTycho2014-02-011-1/+1
| | | | | | | | | | | | | Changed the signitures of the following to use interfaces: GetPlacementBlockTypeMeta OnPlaced OnPlacedByPlayer OnDestroyed OnNeighbourChanged NeighbourChanged OnUse CanBeAt Check
* Refactored cBlockHandler::OnUse and dependentsTycho2014-01-261-5/+5
|
* First attempt at Implementing InterfacesTycho2014-01-251-16/+16
|
* Moved source to srcAlexander Harkness2013-11-241-0/+88