1
0

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:
12xx12 2020-09-19 19:31:36 +02:00 committed by GitHub
parent 1a211b6c46
commit a2935efaff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -635,6 +635,7 @@ bool cEntity::ArmorCoversAgainst(eDamageType a_DamageType)
case dtFalling:
case dtLightning:
case dtPlugin:
case dtEnvironment:
{
return false;
}