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.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src/Mobs/MagmaCube.cpp') diff --git a/src/Mobs/MagmaCube.cpp b/src/Mobs/MagmaCube.cpp index e84577433..45dbbc519 100644 --- a/src/Mobs/MagmaCube.cpp +++ b/src/Mobs/MagmaCube.cpp @@ -24,24 +24,24 @@ cMagmaCube::cMagmaCube(int a_Size) : -void cMagmaCube::GetDrops(cItems & a_Drops, cEntity * a_Killer) +AString cMagmaCube::GetSizeName(int a_Size) { - UNUSED(a_Killer); - if (GetSize() > 1) + if (a_Size == 1) { - AddRandomUncommonDropItem(a_Drops, 25.0f, E_ITEM_MAGMA_CREAM); + return "small_"; } + return ""; } -AString cMagmaCube::GetSizeName(int a_Size) +void cMagmaCube::GetDrops(cItems & a_Drops, cEntity * a_Killer) { - if (a_Size == 1) + UNUSED(a_Killer); + if (GetSize() > 1) { - return "small_"; + AddRandomUncommonDropItem(a_Drops, 25.0f, E_ITEM_MAGMA_CREAM); } - return ""; } -- cgit v1.2.3