1
0
Fork 0
cuberite-2a/src/Simulator/IncrementalRedstoneSimulator
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
..
CMakeLists.txt New pull request for daylight sensor (#5066) 2020-12-19 01:42:34 +00:00
CommandBlockHandler.h Chest, weather, crash, and miscellaneous fixes (#5215) 2021-04-30 13:23:46 +00:00
DaylightSensorHandler.h Fix sending incorrect date values on world change 2021-04-12 22:35:07 +01:00
DoorHandler.h Redstone: inline -> static 2021-01-22 22:04:47 +00:00
DropSpenserHandler.h Chest, weather, crash, and miscellaneous fixes (#5215) 2021-04-30 13:23:46 +00:00
ForEachSourceCallback.cpp Move some redstone implementations into the source file 2021-03-28 15:36:10 +01:00
ForEachSourceCallback.h Implement redstone quasi-connectivity (#4889) 2020-09-21 20:39:58 +01:00
HopperHandler.h Chest, weather, crash, and miscellaneous fixes (#5215) 2021-04-30 13:23:46 +00:00
IncrementalRedstoneSimulator.cpp Move some redstone implementations into the source file 2021-03-28 15:36:10 +01:00
IncrementalRedstoneSimulator.h Move some redstone implementations into the source file 2021-03-28 15:36:10 +01:00
NoteBlockHandler.h Chest, weather, crash, and miscellaneous fixes (#5215) 2021-04-30 13:23:46 +00:00
ObserverHandler.h Redstone: inline -> static 2021-01-22 22:04:47 +00:00
PistonHandler.h Redstone: inline -> static 2021-01-22 22:04:47 +00:00
PoweredRailHandler.h Redstone: inline -> static 2021-01-22 22:04:47 +00:00
PressurePlateHandler.h Redstone: inline -> static 2021-01-22 22:04:47 +00:00
RedstoneBlockHandler.h Redstone: inline -> static 2021-01-22 22:04:47 +00:00
RedstoneComparatorHandler.h Redstone: inline -> static 2021-01-22 22:04:47 +00:00
RedstoneDataHelper.h Clang 7? 2021-02-11 01:24:50 +00:00
RedstoneHandler.cpp Unify DoWithBlockEntity (#5168) 2021-03-28 14:40:57 +01:00
RedstoneHandler.h Minor style fixes 2020-08-28 21:42:37 +01:00
RedstoneLampHandler.h Redstone: inline -> static 2021-01-22 22:04:47 +00:00
RedstoneRepeaterHandler.h Redstone: inline -> static 2021-01-22 22:04:47 +00:00
RedstoneSimulatorChunkData.h Prepare for 1.15+ (#4856) 2020-12-21 13:54:04 +00:00
RedstoneToggleHandler.h Redstone: inline -> static 2021-01-22 22:04:47 +00:00
RedstoneTorchHandler.h Redstone: inline -> static 2021-01-22 22:04:47 +00:00
RedstoneWireHandler.h Prepare ChunkData for BlockState storage (#5105) 2021-03-05 14:03:55 +01:00
SmallGateHandler.h Redstone: inline -> static 2021-01-22 22:04:47 +00:00
TNTHandler.h Redstone: inline -> static 2021-01-22 22:04:47 +00:00
TrappedChestHandler.h Chest, weather, crash, and miscellaneous fixes (#5215) 2021-04-30 13:23:46 +00:00
TripwireHookHandler.h Redstone: inline -> static 2021-01-22 22:04:47 +00:00