Fix potion effect colors (#951)

This commit is contained in:
AJ Ferguson 2020-07-13 23:17:20 -08:00 committed by GitHub
parent c4db0e2e63
commit 23f33881cd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -67,7 +67,7 @@ public class LivingEntity extends Entity {
metadata.put(EntityData.HEALTH, entityMetadata.getValue());
break;
case 9:
metadata.put(EntityData.POTION_AUX_VALUE, entityMetadata.getValue()); //TODO: CHECK THIS AND THE BOTTOM ONE
metadata.put(EntityData.EFFECT_COLOR, entityMetadata.getValue());
break;
case 10:
metadata.put(EntityData.EFFECT_AMBIENT, (byte) ((boolean) entityMetadata.getValue() ? 1 : 0));