summaryrefslogtreecommitdiffstats
path: root/src/Simulator/IncrementalRedstoneSimulator.cpp
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2014-02-15 15:06:23 +0100
committerMattes D <github@xoft.cz>2014-02-15 15:06:23 +0100
commit48eafee823cb979ded833b5311c0f5c37a8ca0f2 (patch)
treefad70a53bd337fa152f661e32422da5b9699096e /src/Simulator/IncrementalRedstoneSimulator.cpp
parentMerge pull request #677 from mc-server/BroadcastParticleEffect (diff)
parentFixed typographical error (diff)
downloadcuberite-48eafee823cb979ded833b5311c0f5c37a8ca0f2.tar
cuberite-48eafee823cb979ded833b5311c0f5c37a8ca0f2.tar.gz
cuberite-48eafee823cb979ded833b5311c0f5c37a8ca0f2.tar.bz2
cuberite-48eafee823cb979ded833b5311c0f5c37a8ca0f2.tar.lz
cuberite-48eafee823cb979ded833b5311c0f5c37a8ca0f2.tar.xz
cuberite-48eafee823cb979ded833b5311c0f5c37a8ca0f2.tar.zst
cuberite-48eafee823cb979ded833b5311c0f5c37a8ca0f2.zip
Diffstat (limited to 'src/Simulator/IncrementalRedstoneSimulator.cpp')
-rw-r--r--src/Simulator/IncrementalRedstoneSimulator.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Simulator/IncrementalRedstoneSimulator.cpp b/src/Simulator/IncrementalRedstoneSimulator.cpp
index 5dba69455..a875c9e4d 100644
--- a/src/Simulator/IncrementalRedstoneSimulator.cpp
+++ b/src/Simulator/IncrementalRedstoneSimulator.cpp
@@ -960,7 +960,7 @@ void cIncrementalRedstoneSimulator::HandlePressurePlate(int a_BlockX, int a_Bloc
Vector3f BlockPos(m_X + 0.5f, (float)m_Y, m_Z + 0.5f);
float Distance = (EntityPos - BlockPos).Length();
- if (Distance < 0.5)
+ if (Distance <= 0.7)
{
m_Entity = a_Entity;
return true; // Break out, we only need to know for wooden plates that at least one entity is on top