mirror of
https://github.com/GeyserMC/Geyser.git
synced 2024-08-14 23:57:35 +00: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
This commit is contained in:
parent
fbf30a6059
commit
fb5a894595
1 changed files with 5 additions and 2 deletions
|
@ -42,8 +42,7 @@ public class EntityUtils {
|
||||||
case LUCK:
|
case LUCK:
|
||||||
case UNLUCK:
|
case UNLUCK:
|
||||||
case DOLPHINS_GRACE:
|
case DOLPHINS_GRACE:
|
||||||
case BAD_OMEN:
|
// All Java-exclusive effects as of 1.16.2
|
||||||
case HERO_OF_THE_VILLAGE:
|
|
||||||
return 0;
|
return 0;
|
||||||
case LEVITATION:
|
case LEVITATION:
|
||||||
return 24;
|
return 24;
|
||||||
|
@ -51,6 +50,10 @@ public class EntityUtils {
|
||||||
return 26;
|
return 26;
|
||||||
case SLOW_FALLING:
|
case SLOW_FALLING:
|
||||||
return 27;
|
return 27;
|
||||||
|
case BAD_OMEN:
|
||||||
|
return 28;
|
||||||
|
case HERO_OF_THE_VILLAGE:
|
||||||
|
return 29;
|
||||||
default:
|
default:
|
||||||
return effect.ordinal() + 1;
|
return effect.ordinal() + 1;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue