summaryrefslogtreecommitdiffstats
path: root/src/Generating/ChunkDesc.cpp (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Chest, weather, crash, and miscellaneous fixes (#5215)Tiger Wang2021-04-301-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * Alpha-sort cChestEntity * Chests: use SendUpdateBlockEntity * Pathfinder: fix out of range Y * 1.13: correct weather packet ID * Chests: fix neighbour scanner + Add OnAddToWorld and overload to scan neighbours there, instead of in the constructor/OnUse. This fixes hoppers accessing newly loaded double chests and seeing a null m_Neighbour, thus thinking its a single chest. * Fix typo in cross coords computation. * Simplify hopper logic. * Block entities: ASSERT that type is correct If you match the block type first before calling DoWithBlockEntity, the corresponding block entity must either be empty or correspond to the block type. * Chunk: fix some forgotten PendingSendBE cleanup + Add cleanup in SetAllData, WriteBlockArea - Remove RemoveBlockEntity (used once), HasBlockEntity (not used) * Replace MakeIndex with MakeIndexNoCheck * Remove extraneous MarkDirty in hopper & chests
* Fix debug macro situation (#5114)Tiger Wang2021-01-261-2/+2
| | | Use the standard NDEBUG.
* Manage block entity lifetime with unique_ptr (#4080)peterbell102020-04-031-4/+4
|
* Refactored more of Entities and BlockEntities to use Vector3. (#4403)Mattes D2019-09-291-1/+1
|
* Fixed MSVC warnings (#4400)Mattes D2019-09-271-1/+1
|
* Added a BasicGeneratorTest.Mattes D2019-09-061-4/+4
|
* Separated chunk generator from world / plugin interfaces.Mattes D2019-09-061-10/+8
| | | | The generator now only takes care of servicing synchronous "GetChunk(X, Y)" and "GetBiomes(X, Y)" requests.
* CheckBasicStyle: Check number of empty lines between functions (#4267)peterbell102018-07-261-0/+2
| | | | Add check for number of empty lines between functions and fix the corresponding failures
* Changed entity ownership model to use smart pointersTiger Wang2017-08-071-0/+1
|
* Removed double includes (#3885)Lukas Pioch2017-08-021-2/+0
|
* Store cChunk::m_BlockEntities in a map (#3717)peterbell102017-05-221-14/+18
| | | | | | * Store block entities in a map from block index * Cleanup ForEachBlockEntity * Cleanup DoWithBlockEntityAt
* LuaAPI: Fixed bindings for cChunkDesc:GetBlockTypeMetaMattes D2016-07-181-1/+1
|
* Bulk clearing of whitespaceLogicParrot2016-02-051-2/+2
|
* Fix commentstycho2015-05-281-1/+1
|
* Fixed a lot of warningstycho2015-05-191-6/+6
|
* Merge remote-tracking branch 'origin/master' into GeneratorShapeRefactorMattes D2014-11-201-1/+1
|\
| * Moved all Noise-related files into a separate folder.Mattes D2014-11-181-1/+1
| |
* | Generator: Shape initial refactoring.Mattes D2014-11-121-0/+63
|/ | | | The code compiles, but several structure generators are broken, crash on start.
* En masse NULL -> nullptr replaceTiger Wang2014-10-231-2/+2
|
* Fixed #1550Julian Laubstein2014-10-201-6/+6
|
* Merge branch 'master' into portalsTiger Wang2014-07-181-3/+3
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
| * CopyPaste Errorworktycho2014-07-131-1/+1
| | | | | | Fixes CID 70460.
| * Another COpyPaste Errorworktycho2014-07-131-1/+1
| | | | | | Fixes CID 70461
| * Fix CopyPaste error that ment a_MaxRelX wasdn't checkedworktycho2014-07-131-1/+1
| | | | | | Fixes CID 70464
* | Fixed a NetherFinisher bugTiger Wang2014-06-041-21/+0
|/
* BlockArea: Switched internal coords to Vector3i.madmaxoft2014-03-251-3/+3
|
* ChunkDesc warns about StructureGen's deprecation.madmaxoft2014-03-011-0/+2
|
* Increased Type safety of BiomesTycho2014-02-031-2/+2
| | | | | Changed a number of funcictions from using integers to store biomes to using EMCSBiome Note that switching from an int to an Enum is a non-breaking chang to the lua bindings
* Added cChunkDest::UpdateHeightmap()madmaxoft2014-01-311-0/+25
| | | | This function is necessary for plugins manipulating the generated chunks, they need to update the heightmap before it is passed back to the generator.
* Fixed compiler warning when iterating over a fixed array of items (ARRAYCOUNT).madmaxoft2013-12-201-2/+2
|
* Merge remote-tracking branch 'origin/master' into foldermove2Alexander Harkness2013-11-241-8/+8
| | | | | Conflicts: GNUmakefile
* Moved source to srcAlexander Harkness2013-11-241-0/+605