From a2935efaff7aae4657abac0809f867f5bff7b9bc Mon Sep 17 00:00:00 2001 From: 12xx12 <44411062+12xx12@users.noreply.github.com> Date: Sat, 19 Sep 2020 19:31:36 +0200 Subject: 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 --- src/Entities/Entity.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/Entities/Entity.cpp b/src/Entities/Entity.cpp index f15a01d04..3674d16c1 100644 --- a/src/Entities/Entity.cpp +++ b/src/Entities/Entity.cpp @@ -635,6 +635,7 @@ bool cEntity::ArmorCoversAgainst(eDamageType a_DamageType) case dtFalling: case dtLightning: case dtPlugin: + case dtEnvironment: { return false; } -- cgit v1.2.3