diff options
author | Tiger Wang <ziwei.tiger@outlook.com> | 2021-04-30 15:23:46 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-30 15:23:46 +0200 |
commit | 9b97d63f8f939dbc431cc2dcd9eddf959f86603a (patch) | |
tree | 98aada7aa4e7fc57e0fb0bf9a1bc84e996f483b1 /src/Simulator/IncrementalRedstoneSimulator/DropSpenserHandler.h | |
parent | Fix: GetPhysicalRamUsage on FreeBSD (UNIX) - webadmin display (#5213) (diff) | |
download | cuberite-9b97d63f8f939dbc431cc2dcd9eddf959f86603a.tar cuberite-9b97d63f8f939dbc431cc2dcd9eddf959f86603a.tar.gz cuberite-9b97d63f8f939dbc431cc2dcd9eddf959f86603a.tar.bz2 cuberite-9b97d63f8f939dbc431cc2dcd9eddf959f86603a.tar.lz cuberite-9b97d63f8f939dbc431cc2dcd9eddf959f86603a.tar.xz cuberite-9b97d63f8f939dbc431cc2dcd9eddf959f86603a.tar.zst cuberite-9b97d63f8f939dbc431cc2dcd9eddf959f86603a.zip |
Diffstat (limited to 'src/Simulator/IncrementalRedstoneSimulator/DropSpenserHandler.h')
-rw-r--r-- | src/Simulator/IncrementalRedstoneSimulator/DropSpenserHandler.h | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/Simulator/IncrementalRedstoneSimulator/DropSpenserHandler.h b/src/Simulator/IncrementalRedstoneSimulator/DropSpenserHandler.h index 4dd87e972..5f92c3868 100644 --- a/src/Simulator/IncrementalRedstoneSimulator/DropSpenserHandler.h +++ b/src/Simulator/IncrementalRedstoneSimulator/DropSpenserHandler.h @@ -48,10 +48,7 @@ namespace DropSpenserHandler { a_Chunk.DoWithBlockEntityAt(a_Position, [](cBlockEntity & a_BlockEntity) { - if ((a_BlockEntity.GetBlockType() != E_BLOCK_DISPENSER) && (a_BlockEntity.GetBlockType() != E_BLOCK_DROPPER)) - { - return false; - } + ASSERT((a_BlockEntity.GetBlockType() == E_BLOCK_DISPENSER) || (a_BlockEntity.GetBlockType() == E_BLOCK_DROPPER)); static_cast<cDropSpenserEntity &>(a_BlockEntity).Activate(); return false; |