summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@outlook.com>2020-07-24 10:11:40 +0200
committerTiger Wang <ziwei.tiger@outlook.com>2020-07-24 10:11:40 +0200
commitbc01cd5e75bf50553047974ac02066ec1bfda856 (patch)
tree2259df5157eb164ed12945a13d22b1d67f0302bd /src
parentUse string redirection in Windows service (diff)
downloadcuberite-bc01cd5e75bf50553047974ac02066ec1bfda856.tar
cuberite-bc01cd5e75bf50553047974ac02066ec1bfda856.tar.gz
cuberite-bc01cd5e75bf50553047974ac02066ec1bfda856.tar.bz2
cuberite-bc01cd5e75bf50553047974ac02066ec1bfda856.tar.lz
cuberite-bc01cd5e75bf50553047974ac02066ec1bfda856.tar.xz
cuberite-bc01cd5e75bf50553047974ac02066ec1bfda856.tar.zst
cuberite-bc01cd5e75bf50553047974ac02066ec1bfda856.zip
Diffstat (limited to '')
-rw-r--r--src/Simulator/IncrementalRedstoneSimulator/IncrementalRedstoneSimulator.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/Simulator/IncrementalRedstoneSimulator/IncrementalRedstoneSimulator.cpp b/src/Simulator/IncrementalRedstoneSimulator/IncrementalRedstoneSimulator.cpp
index 4e20c9407..109ee4adc 100644
--- a/src/Simulator/IncrementalRedstoneSimulator/IncrementalRedstoneSimulator.cpp
+++ b/src/Simulator/IncrementalRedstoneSimulator/IncrementalRedstoneSimulator.cpp
@@ -171,9 +171,13 @@ void cIncrementalRedstoneSimulator::Simulate(float a_dt)
{
continue;
}
+
BLOCKTYPE PotentialBlock;
NIBBLETYPE PotentialMeta;
- m_World.GetBlockTypeMeta(Location.x, Location.y, Location.z, PotentialBlock, PotentialMeta);
+ if (!m_World.GetBlockTypeMeta(Location.x, Location.y, Location.z, PotentialBlock, PotentialMeta))
+ {
+ continue;
+ }
auto PotentialSourceHandler = GetComponentHandler(PotentialBlock);
if (PotentialSourceHandler == nullptr)