Only nether-native mobs can see through lava

This commit is contained in:
Rorkh
2021-10-02 21:18:18 +01:00
committed by Tiger Wang
parent 798fdb0709
commit 4c5d9d38f4
13 changed files with 95 additions and 88 deletions
+13 -13
View File
@@ -24,19 +24,6 @@ cMagmaCube::cMagmaCube(int a_Size) :
void cMagmaCube::GetDrops(cItems & a_Drops, cEntity * a_Killer)
{
UNUSED(a_Killer);
if (GetSize() > 1)
{
AddRandomUncommonDropItem(a_Drops, 25.0f, E_ITEM_MAGMA_CREAM);
}
}
AString cMagmaCube::GetSizeName(int a_Size)
{
if (a_Size == 1)
@@ -45,3 +32,16 @@ AString cMagmaCube::GetSizeName(int a_Size)
}
return "";
}
void cMagmaCube::GetDrops(cItems & a_Drops, cEntity * a_Killer)
{
UNUSED(a_Killer);
if (GetSize() > 1)
{
AddRandomUncommonDropItem(a_Drops, 25.0f, E_ITEM_MAGMA_CREAM);
}
}