No need to update disguises on the render call

This commit is contained in:
Sollace 2022-10-12 22:48:36 +02:00
parent d9cb0528f1
commit fa235e8de0
2 changed files with 3 additions and 3 deletions

View file

@ -112,7 +112,7 @@ public class WorldRenderDelegate {
if (pony instanceof Caster<?>) { if (pony instanceof Caster<?>) {
int fireTicks = owner.doesRenderOnFire() ? 1 : 0; int fireTicks = owner.doesRenderOnFire() ? 1 : 0;
return ((Caster<?>)pony).getSpellSlot().get(SpellPredicate.IS_DISGUISE, true).map(effect -> { return ((Caster<?>)pony).getSpellSlot().get(SpellPredicate.IS_DISGUISE, false).map(effect -> {
effect.update(pony, false); effect.update(pony, false);
EntityAppearance ve = effect.getDisguise(); EntityAppearance ve = effect.getDisguise();

View file

@ -59,12 +59,12 @@ public interface Disguise extends FlightType.Provider, PlayerDimensions.Provider
LivingEntity owner = source.getMaster(); LivingEntity owner = source.getMaster();
Entity entity = getDisguise().getOrCreate(source);
if (owner == null) { if (owner == null) {
return true; return true;
} }
Entity entity = getDisguise().getOrCreate(source);
if (entity == null) { if (entity == null) {
owner.setInvisible(false); owner.setInvisible(false);
if (source instanceof Pony) { if (source instanceof Pony) {