mirror of
https://github.com/Sollace/Unicopia.git
synced 2024-12-18 07:57:59 +01:00
No need to update disguises on the render call
This commit is contained in:
parent
d9cb0528f1
commit
fa235e8de0
2 changed files with 3 additions and 3 deletions
|
@ -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();
|
||||||
|
|
|
@ -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) {
|
||||||
|
|
Loading…
Reference in a new issue