summaryrefslogtreecommitdiffstats
path: root/src/Simulator/DelayedFluidSimulator.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Additional Y height checks (#5405)Debucquoy Anthony tonitch2022-06-181-1/+0
| | | | | For redstone wire, block area bindings, and fire simulator. Co-authored-by: Tiger Wang <ziwei.tiger@outlook.com>
* 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
* Added override specifiers to overridden functions.Mattes D2021-04-121-1/+1
| | | | Needed for clang-11 compatibility.
* Do not GetBlock individually in simulatorsTiger Wang2020-08-041-2/+1
| | | | | * Have the simulator manager get the block and pass it on + Add new overload for WakeUp, called when the manager wakes face positions
* Always use relative coordinates in AddBlockTiger Wang2020-08-021-4/+4
| | | | | + Pass block, use relatives * Fixes everything immediately converting abs back to rel and getting block, when these data were already available
* Add WakeUp/AddBlock distinctionTiger Wang2020-08-021-1/+2
| | | | | | * WakeUp is for singular changes (block breaking for example). The simulator should check blocks around the position and discover other affected blocks as it sees fit * AddBlock is for when you know a whole area is to be updated; chunk loading, or area wakeups for example + Prepares for correct handling of destroyed blocks after removal of SolidBlockHandler in the redstone simulator
* Using Super.Mattes D2020-04-161-2/+3
|
* Changed int parameters to vector parameters in cCuboid and simulators (#3874)Lane Kolbly2017-08-171-1/+1
|
* Bulk clearing of whitespaceLogicParrot2016-02-051-8/+8
|
* Unified the doxy-comment format.Mattes D2015-07-311-8/+6
|
* Initial convertion of a_Dt to std::chronoTycho2015-01-111-1/+1
| | | | also refactored cWorld::m_WorldAge and cWorld::m_TimeOfDay
* Fixed tabs used for alignment.madmaxoft2014-07-171-1/+1
|
* Basic style fixes.madmaxoft2014-07-171-1/+1
|
* Moved source to srcAlexander Harkness2013-11-241-0/+82