Fixed spells not rendering on disguised players

This commit is contained in:
Sollace 2024-02-13 18:46:36 +00:00
parent 4593648974
commit e1d4b229ff
No known key found for this signature in database
GPG key ID: E52FACE7B5C773DB

View file

@ -2,6 +2,7 @@ package com.minelittlepony.unicopia.client.render;
import org.jetbrains.annotations.Nullable;
import com.minelittlepony.unicopia.client.render.spell.SpellEffectsRenderDispatcher;
import com.minelittlepony.unicopia.compat.pehkui.PehkUtil;
import com.minelittlepony.unicopia.entity.Living;
import com.minelittlepony.unicopia.entity.behaviour.Disguise;
@ -58,6 +59,11 @@ class EntityDisguiseRenderer {
PehkUtil.clearScale(ee);
});
matrices.push();
matrices.translate(x, y, z);
SpellEffectsRenderDispatcher.INSTANCE.render(matrices, vertexConsumers, light, pony, 0, 0, tickDelta, pony.asEntity().age + tickDelta, 0, 0);
matrices.pop();
delegate.afterEntityRender(pony, matrices, light);
PehkUtil.clearScale(e);
return true;