From 7f5757eccff7b81c17443ea4e0b4ce86e2d5dc04 Mon Sep 17 00:00:00 2001 From: LogicParrot Date: Mon, 18 Apr 2016 13:30:23 +0300 Subject: Reduced unnecessary block updates --- src/Chunk.h | 7 ------- 1 file changed, 7 deletions(-) (limited to 'src/Chunk.h') diff --git a/src/Chunk.h b/src/Chunk.h index 9b9a26f03..3260a056f 100644 --- a/src/Chunk.h +++ b/src/Chunk.h @@ -401,7 +401,6 @@ public: bool hasChanged = m_ChunkData.SetMeta(a_RelX, a_RelY, a_RelZ, a_Meta); if (hasChanged) { - m_IsRedstoneDirty = true; if (a_ShouldMarkDirty) { MarkDirty(); @@ -462,8 +461,6 @@ public: cRedstoneSimulatorChunkData * GetRedstoneSimulatorData(void) { return m_RedstoneSimulatorData; } void SetRedstoneSimulatorData(cRedstoneSimulatorChunkData * a_Data) { m_RedstoneSimulatorData = a_Data; } - bool IsRedstoneDirty(void) const { return m_IsRedstoneDirty; } - void SetIsRedstoneDirty(bool a_Flag) { m_IsRedstoneDirty = a_Flag; } cBlockEntity * GetBlockEntity(int a_BlockX, int a_BlockY, int a_BlockZ); cBlockEntity * GetBlockEntity(const Vector3i & a_BlockPos) { return GetBlockEntity(a_BlockPos.x, a_BlockPos.y, a_BlockPos.z); } @@ -551,10 +548,6 @@ private: cRedstoneSimulatorChunkData * m_RedstoneSimulatorData; - - /** Indicates if simulate-once blocks should be updated by the redstone simulator */ - bool m_IsRedstoneDirty; - /** If greater than zero, the chunk is ticked even if it has no clients. Manipulated by the SetAlwaysTicked() function, allows for nested calls of the function. This is the support for plugin-accessible chunk tick forcing. */ -- cgit v1.2.3