3
0
Mirror von https://github.com/GeyserMC/Geyser.git synchronisiert 2024-12-26 08:10:11 +01:00

EntityUtils: Properly map 1.14 entity status effects (#1133)

Previously, Hero of the Village and Bad Omen effects were mapped to 0. This commit updates them to their proper Bedrock values.

Fixes #1129
Dieser Commit ist enthalten in:
Camotoy 2020-08-12 09:22:13 -04:00 committet von GitHub
Ursprung fbf30a6059
Commit fb5a894595
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 4AEE18F83AFDEB23

Datei anzeigen

@ -42,8 +42,7 @@ public class EntityUtils {
case LUCK:
case UNLUCK:
case DOLPHINS_GRACE:
case BAD_OMEN:
case HERO_OF_THE_VILLAGE:
// All Java-exclusive effects as of 1.16.2
return 0;
case LEVITATION:
return 24;
@ -51,6 +50,10 @@ public class EntityUtils {
return 26;
case SLOW_FALLING:
return 27;
case BAD_OMEN:
return 28;
case HERO_OF_THE_VILLAGE:
return 29;
default:
return effect.ordinal() + 1;
}