1
0
cuberite-2a/src/Generating
Tiger Wang 9b97d63f8f
Chest, weather, crash, and miscellaneous fixes (#5215)
* 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
2021-04-30 13:23:46 +00:00
..
BioGen.cpp shared_ptr -> unique_ptr in generators 2021-03-17 23:44:42 +00:00
BioGen.h shared_ptr -> unique_ptr in generators 2021-03-17 23:44:42 +00:00
Caves.cpp Chest, weather, crash, and miscellaneous fixes (#5215) 2021-04-30 13:23:46 +00:00
Caves.h Using Super. 2020-04-16 20:07:48 +00:00
ChunkDesc.cpp Chest, weather, crash, and miscellaneous fixes (#5215) 2021-04-30 13:23:46 +00:00
ChunkDesc.h Fix debug macro situation (#5114) 2021-01-26 09:41:55 +00:00
ChunkGenerator.cpp ChunkGenerator: Changed to use cChunkCoords. 2019-09-08 20:21:49 +02:00
ChunkGenerator.h Deleted BiomeDef.h and ChunkDef.h from Globals.h (#4885) 2020-09-25 09:13:59 +00:00
CMakeLists.txt cPieceModifier interface and cPieceModifierRandomizeBlocks class (#5122) 2021-04-08 12:24:59 +02:00
CompoGen.cpp shared_ptr -> unique_ptr in generators 2021-03-17 23:44:42 +00:00
CompoGen.h shared_ptr -> unique_ptr in generators 2021-03-17 23:44:42 +00:00
CompoGenBiomal.cpp shared_ptr -> unique_ptr in generators 2021-03-17 23:44:42 +00:00
CompoGenBiomal.h shared_ptr -> unique_ptr in generators 2021-03-17 23:44:42 +00:00
ComposableGenerator.cpp ForestRocks: use make_unique to construct 2021-04-12 22:56:21 +01:00
ComposableGenerator.h shared_ptr -> unique_ptr in generators 2021-03-17 23:44:42 +00:00
CompositedHeiGen.h shared_ptr -> unique_ptr in generators 2021-03-17 23:44:42 +00:00
DistortedHeightmap.cpp shared_ptr -> unique_ptr in generators 2021-03-17 23:44:42 +00:00
DistortedHeightmap.h shared_ptr -> unique_ptr in generators 2021-03-17 23:44:42 +00:00
DungeonRoomsFinisher.cpp shared_ptr -> unique_ptr in generators 2021-03-17 23:44:42 +00:00
DungeonRoomsFinisher.h shared_ptr -> unique_ptr in generators 2021-03-17 23:44:42 +00:00
EnderDragonFightStructuresGen.cpp Fix random_engine seed cast (#5212) 2021-04-27 13:56:12 +01:00
EnderDragonFightStructuresGen.h Obsidian pillars, end fountain, not Ender dragon spawning (#4993) 2021-04-08 12:18:18 +02:00
EndGen.cpp fixed typo (#5208) 2021-04-23 21:33:47 +00:00
EndGen.h Simple end gen (#4973) 2020-10-11 15:44:57 +00:00
FinishGen.cpp Chest, weather, crash, and miscellaneous fixes (#5215) 2021-04-30 13:23:46 +00:00
FinishGen.h Fixed generator for the Mega Taiga biome (#5129) 2021-04-12 22:33:14 +01:00
GridStructGen.cpp Using Super. 2020-04-16 20:07:48 +00:00
GridStructGen.h Remove smart pointer macros 2017-07-21 14:41:51 +01:00
HeiGen.cpp shared_ptr -> unique_ptr in generators 2021-03-17 23:44:42 +00:00
HeiGen.h shared_ptr -> unique_ptr in generators 2021-03-17 23:44:42 +00:00
IntGen.h Added override specifiers to overridden functions. 2021-04-12 14:09:52 +01:00
MineShafts.cpp Added override specifiers to overridden functions. 2021-04-12 14:09:52 +01:00
MineShafts.h Using Super. 2020-04-16 20:07:48 +00:00
Noise3DGenerator.cpp shared_ptr -> unique_ptr in generators 2021-03-17 23:44:42 +00:00
Noise3DGenerator.h shared_ptr -> unique_ptr in generators 2021-03-17 23:44:42 +00:00
PieceGeneratorBFSTree.cpp Some emplace_back replacements (#5149) 2021-03-07 16:31:43 +00:00
PieceGeneratorBFSTree.h Removed unneeded includes (#3902) 2017-08-06 20:57:44 +01:00
PieceModifier.cpp cPieceModifier interface and cPieceModifierRandomizeBlocks class (#5122) 2021-04-08 12:24:59 +02:00
PieceModifier.h cPieceModifier interface and cPieceModifierRandomizeBlocks class (#5122) 2021-04-08 12:24:59 +02:00
PiecePool.cpp cPieceModifier interface and cPieceModifierRandomizeBlocks class (#5122) 2021-04-08 12:24:59 +02:00
PiecePool.h cPieceModifier interface and cPieceModifierRandomizeBlocks class (#5122) 2021-04-08 12:24:59 +02:00
PieceStructuresGen.cpp shared_ptr -> unique_ptr in generators 2021-03-17 23:44:42 +00:00
PieceStructuresGen.h shared_ptr -> unique_ptr in generators 2021-03-17 23:44:42 +00:00
Prefab.cpp cPieceModifier interface and cPieceModifierRandomizeBlocks class (#5122) 2021-04-08 12:24:59 +02:00
Prefab.h Gen: Moved PiecePool into a separate file. 2017-05-04 09:49:30 +02:00
PrefabPiecePool.cpp cPieceModifier interface and cPieceModifierRandomizeBlocks class (#5122) 2021-04-08 12:24:59 +02:00
PrefabPiecePool.h shared_ptr -> unique_ptr in generators 2021-03-17 23:44:42 +00:00
PrefabStructure.cpp shared_ptr -> unique_ptr in generators 2021-03-17 23:44:42 +00:00
PrefabStructure.h shared_ptr -> unique_ptr in generators 2021-03-17 23:44:42 +00:00
ProtIntGen.h Added override specifiers to overridden functions. 2021-04-12 14:09:52 +01:00
Ravines.cpp Some emplace_back replacements (#5149) 2021-03-07 16:31:43 +00:00
Ravines.h Using Super. 2020-04-16 20:07:48 +00:00
RoughRavines.cpp Fix debug macro situation (#5114) 2021-01-26 09:41:55 +00:00
RoughRavines.h Using Super. 2020-04-16 20:07:48 +00:00
ShapeGen.cpp shared_ptr -> unique_ptr in generators 2021-03-17 23:44:42 +00:00
SinglePieceStructuresGen.cpp shared_ptr -> unique_ptr in generators 2021-03-17 23:44:42 +00:00
SinglePieceStructuresGen.h shared_ptr -> unique_ptr in generators 2021-03-17 23:44:42 +00:00
StructGen.cpp shared_ptr -> unique_ptr in generators 2021-03-17 23:44:42 +00:00
StructGen.h shared_ptr -> unique_ptr in generators 2021-03-17 23:44:42 +00:00
Trees.cpp fixes the fallthrough (#5198) 2021-04-20 15:04:31 +00:00
Trees.h Add Mushrooms to Generator and fixed up the roofed forest (#5134) 2021-03-05 14:04:48 +01:00
TwoHeights.cpp shared_ptr -> unique_ptr in generators 2021-03-17 23:44:42 +00:00
TwoHeights.h shared_ptr -> unique_ptr in generators 2021-03-17 23:44:42 +00:00
VerticalLimit.cpp shared_ptr -> unique_ptr in generators 2021-03-17 23:44:42 +00:00
VerticalLimit.h Gen: Moved PiecePool into a separate file. 2017-05-04 09:49:30 +02:00
VerticalStrategy.cpp shared_ptr -> unique_ptr in generators 2021-03-17 23:44:42 +00:00
VerticalStrategy.h Gen: Moved PiecePool into a separate file. 2017-05-04 09:49:30 +02:00
VillageGen.cpp shared_ptr -> unique_ptr in generators 2021-03-17 23:44:42 +00:00
VillageGen.h shared_ptr -> unique_ptr in generators 2021-03-17 23:44:42 +00:00