From f65679d1d4ca84dcb5bdeffacf9e815c2cc539b6 Mon Sep 17 00:00:00 2001 From: ion232 <66679118+ion232@users.noreply.github.com> Date: Sat, 8 Aug 2020 22:41:42 +0100 Subject: Fix arrows preventing block placement --- src/Entities/ArrowEntity.cpp | 9 +++++++++ src/Entities/ArrowEntity.h | 3 +++ 2 files changed, 12 insertions(+) (limited to 'src') 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 -- cgit v1.2.3