Set ambient properly in modify(entity, 'effect') (#1501)

This commit is contained in:
Ghoulboy authored and GitHub committed 2022-07-21 15:12:44 +02:00
1 parent c919a8c4c7
commit 14325d7e80
1 file changed
+1 -1
@@ -1516,7 +1516,7 @@ public class EntityValue extends Value
showIcon = lv.get(4).getBoolean(); showIcon = lv.get(4).getBoolean();
boolean ambient = false; boolean ambient = false;
if (lv.size() > 5) if (lv.size() > 5)
showIcon = lv.get(5).getBoolean(); ambient = lv.get(5).getBoolean();
le.addEffect(new MobEffectInstance(effect, duration, amplifier, ambient, showParticles, showIcon)); le.addEffect(new MobEffectInstance(effect, duration, amplifier, ambient, showParticles, showIcon));
return; return;
} }