diff options
author | ion232 <66679118+ion232@users.noreply.github.com> | 2020-08-08 23:41:42 +0200 |
---|---|---|
committer | Alexander Harkness <me@bearbin.net> | 2020-08-09 12:19:01 +0200 |
commit | f65679d1d4ca84dcb5bdeffacf9e815c2cc539b6 (patch) | |
tree | c1b6a41ef8cc613fd3bf154b3e2c250b85113c4a /src/Entities | |
parent | Update CONTRIBUTORS to add ion232 (diff) | |
download | cuberite-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 'src/Entities')
-rw-r--r-- | src/Entities/ArrowEntity.cpp | 9 | ||||
-rw-r--r-- | src/Entities/ArrowEntity.h | 3 |
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 |