summaryrefslogtreecommitdiffstats
path: root/src/Simulator/IncrementalRedstoneSimulator/DropSpenserHandler.h
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@outlook.com>2020-09-21 21:39:58 +0200
committerGitHub <noreply@github.com>2020-09-21 21:39:58 +0200
commit6183b28f93f7315b7afb1f17ab46a684002e173f (patch)
tree6d1d0b858b05868c7153206cb60a6d7c6c98f960 /src/Simulator/IncrementalRedstoneSimulator/DropSpenserHandler.h
parentImplement Dropspenser Hook (#4903) (diff)
downloadcuberite-6183b28f93f7315b7afb1f17ab46a684002e173f.tar
cuberite-6183b28f93f7315b7afb1f17ab46a684002e173f.tar.gz
cuberite-6183b28f93f7315b7afb1f17ab46a684002e173f.tar.bz2
cuberite-6183b28f93f7315b7afb1f17ab46a684002e173f.tar.lz
cuberite-6183b28f93f7315b7afb1f17ab46a684002e173f.tar.xz
cuberite-6183b28f93f7315b7afb1f17ab46a684002e173f.tar.zst
cuberite-6183b28f93f7315b7afb1f17ab46a684002e173f.zip
Diffstat (limited to 'src/Simulator/IncrementalRedstoneSimulator/DropSpenserHandler.h')
-rw-r--r--src/Simulator/IncrementalRedstoneSimulator/DropSpenserHandler.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/Simulator/IncrementalRedstoneSimulator/DropSpenserHandler.h b/src/Simulator/IncrementalRedstoneSimulator/DropSpenserHandler.h
index 2d0eb959d..fb0671fdc 100644
--- a/src/Simulator/IncrementalRedstoneSimulator/DropSpenserHandler.h
+++ b/src/Simulator/IncrementalRedstoneSimulator/DropSpenserHandler.h
@@ -65,6 +65,11 @@ namespace DropSpenserHandler
UNUSED(a_Chunk);
UNUSED(a_BlockType);
UNUSED(a_Meta);
+
+ // Consider indirect power:
+ Callback.CheckIndirectPower();
+
+ // Consider normal adjacents:
InvokeForAdjustedRelatives(Callback, a_Position, RelativeAdjacents);
}
};