summaryrefslogtreecommitdiffstats
path: root/src/NetherPortalScanner.cpp (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Properly deprecate more XYZ parameter'd functions (#5147)Tiger Wang2021-03-151-17/+17
| | | * Fixes #5144
* Some emplace_back replacements (#5149)12xx122021-03-071-1/+1
| | | * replace push_back with emplace_back when a new object was created in the function call
* Prepare ChunkData for BlockState storage (#5105)Tiger Wang2021-03-051-23/+59
| | | | | | | | | | | | | | | | | | | | | | | * Rename ChunkData Creatable test * Add missing Y-check in RedstoneWireHandler * Remove ChunkDef.h dependency in Scoreboard * Prepare ChunkData for BlockState storage + Split chunk block, meta, block & sky light storage + Load the height map from disk - Reduce duplicated code in ChunkData - Remove saving MCSBiomes, there aren't any - Remove the allocation pool, ref #4315, #3864 * fixed build * fixed test * fixed the debug compile Co-authored-by: 12xx12 <44411062+12xx12@users.noreply.github.com>
* Light the nether portal when switching dimensions (#5062)cflep2020-12-011-1/+1
| | | * Fixes #5007
* Correct world access in NetherPortalScannerTiger Wang2020-04-191-6/+16
|
* MoveToWorld must always be provided a worldTiger Wang2020-04-181-21/+21
|
* Only store IDs across ticksTiger Wang2020-04-181-4/+15
|
* Pulled the BlockID and BlockInfo headers from Globals.h. (#4591)Mattes D2020-04-031-0/+1
| | | | | | | | | The BlockID.h file was removed from Globals.h and renamed to BlockType.h (main change) The BlockInfo.h file was removed from Globals.h (main change) The ENUM_BLOCK_ID and ENUM_ITEM_ID enum names were replaced with ENUM_BLOCK_TYPE and ENUM_ITEM_TYPE (cosmetics) The various enums, such as eDimension, eDamageType and eExplosionSource were moved from BlockType.h to Defines.h, together with the helper functions for converting between them and strings (StringToDimension et al.) (minor) Many inline functions were moved from headers to their respective cpp files, so that BlockType.h could be included only into the cpp file, rather than the header. That broke our tests a bit, since they pick bits and pieces out of the main code and provide stubs for the rest; they had to be re-stubbed and re-verified. eMonsterType values are no longer tied to E_ITEM_SPAWN_EGG_META_* values
* Send respawn packet by default (#4540)Mat2020-03-241-1/+1
|
* Stabilise MoveToWorld (#4004)Mat2020-03-051-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Stabilise MoveToWorld * Fix comments and deprecate ScheduleMoveToWorld * Enhanced thread safety for m_WorldChangeInfo * Return unique_ptr from cAtomicUniquePtr::exchange * cWorld now calls entity cEntity::OnAddToWorld and cEntity::OnRemoveFromWorld. Allows broadcasting entities added to the world from the world's tick thread. This also factors out some common code from cEntity::DoMoveToWorld and cEntity::Initialize. As a consequence, cEntity::Destroy(false) (i.e. Destroying the entity without broadcasting) is impossible. This isn't used anywhere in Cuberite so it's now deprecated. * Update entity position after removing it from the world. Fixes broadcasts being sent to the wrong chunk. * Fix style * cEntity: Update LastSentPosition when sending spawn packet * Add Wno-deprecated-declarations to the lua bindings * Kill uses of ScheduleMoveToWorld
* Make Nether portals spawn the player inside of them (#4325)DaPorkchop_2019-04-181-2/+2
| | | | | | Currently the player is spawned immediately in front of them. Simply changing `cNetherPortalScanner::OutOffset` to 0.5 wasn't enough, as the player would always be spawned on top of the portal, however checking for non-solid blocks instead of air fixes this.
* Add a formatting function for Vector3 (#4282)peterbell102018-09-241-2/+2
| | | | | | | | | | * Vector3: Add custom fmt compatible formatter. * cLuaState: Add fmt version of ApiParamError * Use vector formatting in manual bindings * Always log vectors with FLOG
* CheckBasicStyle: Check number of empty lines between functions (#4267)peterbell102018-07-261-1/+0
| | | | Add check for number of empty lines between functions and fix the corresponding failures
* Use clang-tidy to check more code conventions (#4214)Bond-0092018-05-061-0/+8
| | | | | | | * Create clang-tidy.sh * Add clang-tidy to circle.yml * Fixed some naming violations Fixes #4164
* Removed double includes (#3885)Lukas Pioch2017-08-021-1/+0
|
* Work on NetherPortalScanner. Setup portal scanner to reset PortalCooldown. Changed where player is spawned. Added a_InitSpawn flag to CreateAndInitializeWorld.Lane Kolbly2015-06-131-1/+7
|
* NetherPortalScanner: Fixed type conversion warnings.Mattes D2015-06-131-2/+2
|
* Implemented nether portal scanning code.Lane Kolbly2015-06-101-0/+290