From 4c5d9d38f45ae7c18a3e9799152305757a8a1d2a Mon Sep 17 00:00:00 2001 From: Rorkh Date: Sat, 18 Sep 2021 14:10:31 +0500 Subject: Only nether-native mobs can see through lava --- src/Mobs/MagmaCube.h | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'src/Mobs/MagmaCube.h') diff --git a/src/Mobs/MagmaCube.h b/src/Mobs/MagmaCube.h index 3a7d25055..07794cc5a 100644 --- a/src/Mobs/MagmaCube.h +++ b/src/Mobs/MagmaCube.h @@ -18,19 +18,17 @@ public: CLASS_PROTODEF(cMagmaCube) - virtual void GetDrops(cItems & a_Drops, cEntity * a_Killer = nullptr) override; int GetSize(void) const { return m_Size; } /** Returns the text describing the slime's size, as used by the client's resource subsystem for sounds. Returns either "big" or "small". */ static AString GetSizeName(int a_Size); -protected: +private: + + virtual void GetDrops(cItems & a_Drops, cEntity * a_Killer = nullptr) override; + virtual bool IsNetherNative(void) override { return true; } /** Size of the MagmaCube, with 1 being the smallest */ int m_Size; } ; - - - - -- cgit v1.2.3