Fixed missing case: in entity damaging crashin the server (#4899)
* made snow golems not crashing the server anymore * changed damage type to environment * updated damage in API dopcumentation and changed enderman damage type * removed incidental d in the code * added dtEnvironment to ArmorCoversAgainst Co-authored-by: 12xx12 <12xx12100@gmail.com> Co-authored-by: Alexander Harkness <me@bearbin.net>
This commit is contained in:
parent
1a211b6c46
commit
a2935efaff
@ -635,6 +635,7 @@ bool cEntity::ArmorCoversAgainst(eDamageType a_DamageType)
|
|||||||
case dtFalling:
|
case dtFalling:
|
||||||
case dtLightning:
|
case dtLightning:
|
||||||
case dtPlugin:
|
case dtPlugin:
|
||||||
|
case dtEnvironment:
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user