diff options
author | Marvin Kopf <marvinkopf@posteo.de> | 2016-02-07 15:27:24 +0100 |
---|---|---|
committer | Marvin Kopf <marvinkopf@posteo.de> | 2016-02-09 22:19:29 +0100 |
commit | af514acd8c4af3ed1fb03fae3c0c612d7e472a7c (patch) | |
tree | c4ebfd7a0b1bf673ae9b12b0efa308c8bdae7763 /src/Simulator/IncrementalRedstoneSimulator/RedstoneSimulatorChunkData.h | |
parent | Merge pull request #2981 from Drahoslav7/master (diff) | |
download | cuberite-af514acd8c4af3ed1fb03fae3c0c612d7e472a7c.tar cuberite-af514acd8c4af3ed1fb03fae3c0c612d7e472a7c.tar.gz cuberite-af514acd8c4af3ed1fb03fae3c0c612d7e472a7c.tar.bz2 cuberite-af514acd8c4af3ed1fb03fae3c0c612d7e472a7c.tar.lz cuberite-af514acd8c4af3ed1fb03fae3c0c612d7e472a7c.tar.xz cuberite-af514acd8c4af3ed1fb03fae3c0c612d7e472a7c.tar.zst cuberite-af514acd8c4af3ed1fb03fae3c0c612d7e472a7c.zip |
Diffstat (limited to 'src/Simulator/IncrementalRedstoneSimulator/RedstoneSimulatorChunkData.h')
-rw-r--r-- | src/Simulator/IncrementalRedstoneSimulator/RedstoneSimulatorChunkData.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/Simulator/IncrementalRedstoneSimulator/RedstoneSimulatorChunkData.h b/src/Simulator/IncrementalRedstoneSimulator/RedstoneSimulatorChunkData.h index 8e025d154..b461512f0 100644 --- a/src/Simulator/IncrementalRedstoneSimulator/RedstoneSimulatorChunkData.h +++ b/src/Simulator/IncrementalRedstoneSimulator/RedstoneSimulatorChunkData.h @@ -41,6 +41,12 @@ public: return (Result == m_MechanismDelays.end()) ? nullptr : &Result->second; } + /** Erase cached PowerData for position */ + void ErasePowerData(const Vector3i & a_Position) + { + m_CachedPowerLevels.erase(a_Position); + } + cRedstoneHandler::PoweringData ExchangeUpdateOncePowerData(const Vector3i & a_Position, cRedstoneHandler::PoweringData a_PoweringData) { auto Result = m_CachedPowerLevels.find(a_Position); |