summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorion232 <66679118+ion232@users.noreply.github.com>2020-08-08 23:41:42 +0200
committerAlexander Harkness <me@bearbin.net>2020-08-09 12:19:01 +0200
commitf65679d1d4ca84dcb5bdeffacf9e815c2cc539b6 (patch)
treec1b6a41ef8cc613fd3bf154b3e2c250b85113c4a
parentUpdate CONTRIBUTORS to add ion232 (diff)
downloadcuberite-f65679d1d4ca84dcb5bdeffacf9e815c2cc539b6.tar
cuberite-f65679d1d4ca84dcb5bdeffacf9e815c2cc539b6.tar.gz
cuberite-f65679d1d4ca84dcb5bdeffacf9e815c2cc539b6.tar.bz2
cuberite-f65679d1d4ca84dcb5bdeffacf9e815c2cc539b6.tar.lz
cuberite-f65679d1d4ca84dcb5bdeffacf9e815c2cc539b6.tar.xz
cuberite-f65679d1d4ca84dcb5bdeffacf9e815c2cc539b6.tar.zst
cuberite-f65679d1d4ca84dcb5bdeffacf9e815c2cc539b6.zip
Diffstat (limited to '')
-rw-r--r--src/Entities/ArrowEntity.cpp9
-rw-r--r--src/Entities/ArrowEntity.h3
2 files changed, 12 insertions, 0 deletions
diff --git a/src/Entities/ArrowEntity.cpp b/src/Entities/ArrowEntity.cpp
index e2bc6ffe0..e72743b3a 100644
--- a/src/Entities/ArrowEntity.cpp
+++ b/src/Entities/ArrowEntity.cpp
@@ -195,3 +195,12 @@ void cArrowEntity::Tick(std::chrono::milliseconds a_Dt, cChunk & a_Chunk)
}
}
}
+
+
+
+
+
+bool cArrowEntity::DoesPreventBlockPlacement(void) const
+{
+ return false;
+}
diff --git a/src/Entities/ArrowEntity.h b/src/Entities/ArrowEntity.h
index 6b6e5d010..2ddc43617 100644
--- a/src/Entities/ArrowEntity.h
+++ b/src/Entities/ArrowEntity.h
@@ -104,4 +104,7 @@ protected:
virtual void CollectedBy(cPlayer & a_Player) override;
virtual void Tick(std::chrono::milliseconds a_Dt, cChunk & a_Chunk) override;
+ // cEntity overrides:
+ virtual bool DoesPreventBlockPlacement(void) const override;
+
}; // tolua_export