1
0
Fork 0
cuberite-2a/src/Simulator
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
..
IncrementalRedstoneSimulator Chest, weather, crash, and miscellaneous fixes (#5215) 2021-04-30 13:23:46 +00:00
CMakeLists.txt Upgrade to C++17 [CMake] (#4717) 2020-05-16 20:59:10 +01:00
DelayedFluidSimulator.cpp Chest, weather, crash, and miscellaneous fixes (#5215) 2021-04-30 13:23:46 +00:00
DelayedFluidSimulator.h Chest, weather, crash, and miscellaneous fixes (#5215) 2021-04-30 13:23:46 +00:00
FireSimulator.cpp Some emplace_back replacements (#5149) 2021-03-07 16:31:43 +00:00
FireSimulator.h Always use relative coordinates in AddBlock 2020-08-02 15:52:06 +01:00
FloodyFluidSimulator.cpp Remove DoesDropOnUnsuitable 2021-03-15 02:44:39 +00:00
FloodyFluidSimulator.h Using Super. 2020-04-16 20:07:48 +00:00
FluidSimulator.cpp Properly deprecate more XYZ parameter'd functions (#5147) 2021-03-15 02:28:18 +00:00
FluidSimulator.h Always use relative coordinates in AddBlock 2020-08-02 15:52:06 +01:00
NoopFluidSimulator.h Move some redstone implementations into the source file 2021-03-28 15:36:10 +01:00
NoopRedstoneSimulator.h Always use relative coordinates in AddBlock 2020-08-02 15:52:06 +01:00
RedstoneSimulator.h Move some redstone implementations into the source file 2021-03-28 15:36:10 +01:00
SandSimulator.cpp Properly deprecate more XYZ parameter'd functions (#5147) 2021-03-15 02:28:18 +00:00
SandSimulator.h Use tracing for explosions (#4845) 2020-09-12 18:57:44 +00:00
Simulator.cpp ChunkMap: do not wantonly make empty chunks 2020-08-28 21:22:44 +01:00
Simulator.h Deleted BiomeDef.h and ChunkDef.h from Globals.h (#4885) 2020-09-25 09:13:59 +00:00
SimulatorManager.cpp Fix cmake not adding Werror on clang, and _lots_ of warnings (#4963) 2020-10-05 10:27:14 +00:00
SimulatorManager.h Do not GetBlock individually in simulators 2020-08-04 18:15:18 +01:00
VanillaFluidSimulator.cpp Using Super. 2020-04-16 20:07:48 +00:00
VanillaFluidSimulator.h Using Super. 2020-04-16 20:07:48 +00:00
VaporizeFluidSimulator.cpp Unify DoWithBlockEntity (#5168) 2021-03-28 14:40:57 +01:00
VaporizeFluidSimulator.h Move some redstone implementations into the source file 2021-03-28 15:36:10 +01:00