summaryrefslogtreecommitdiffstats
path: root/src/Simulator/IncrementalRedstoneSimulator/CommandBlockHandler.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/Simulator/IncrementalRedstoneSimulator/CommandBlockHandler.h')
-rw-r--r--src/Simulator/IncrementalRedstoneSimulator/CommandBlockHandler.h11
1 files changed, 3 insertions, 8 deletions
diff --git a/src/Simulator/IncrementalRedstoneSimulator/CommandBlockHandler.h b/src/Simulator/IncrementalRedstoneSimulator/CommandBlockHandler.h
index 91fbe05ff..de0f23620 100644
--- a/src/Simulator/IncrementalRedstoneSimulator/CommandBlockHandler.h
+++ b/src/Simulator/IncrementalRedstoneSimulator/CommandBlockHandler.h
@@ -44,17 +44,12 @@ public:
return {};
}
- class cSetPowerToCommandBlock : public cCommandBlockCallback
- {
- public:
- virtual bool Item(cCommandBlockEntity * a_CommandBlock) override
+ a_World.DoWithCommandBlockAt(a_Position.x, a_Position.y, a_Position.z, [](cCommandBlockEntity & a_CommandBlock)
{
- a_CommandBlock->Activate();
+ a_CommandBlock.Activate();
return false;
}
- } CmdBlockSP;
-
- a_World.DoWithCommandBlockAt(a_Position.x, a_Position.y, a_Position.z, CmdBlockSP);
+ );
return {};
}