From 05045860c2002e3c9a79d90290f4d65fdd171141 Mon Sep 17 00:00:00 2001 From: Bond-009 Date: Thu, 17 Aug 2017 16:29:43 +0200 Subject: Sitting cats block enderchests from opening (#3906) --- src/Mobs/Ocelot.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/Mobs/Ocelot.h') diff --git a/src/Mobs/Ocelot.h b/src/Mobs/Ocelot.h index 5729851fe..59b4f25af 100644 --- a/src/Mobs/Ocelot.h +++ b/src/Mobs/Ocelot.h @@ -54,6 +54,9 @@ public: } void SetCatType (eCatType a_CatType) { m_CatType = a_CatType; } + /** Returns true if there's a cat sitting above the given position */ + static bool IsCatSittingOnBlock(cWorld * a_World, Vector3d a_BlockPosition); + protected: bool m_IsSitting; -- cgit v1.2.3