mirror of
https://github.com/Sollace/Unicopia.git
synced 2024-12-17 23:48:00 +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<?>) {
|
||||
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);
|
||||
|
||||
EntityAppearance ve = effect.getDisguise();
|
||||
|
|
|
@ -59,12 +59,12 @@ public interface Disguise extends FlightType.Provider, PlayerDimensions.Provider
|
|||
|
||||
LivingEntity owner = source.getMaster();
|
||||
|
||||
Entity entity = getDisguise().getOrCreate(source);
|
||||
|
||||
if (owner == null) {
|
||||
return true;
|
||||
}
|
||||
|
||||
Entity entity = getDisguise().getOrCreate(source);
|
||||
|
||||
if (entity == null) {
|
||||
owner.setInvisible(false);
|
||||
if (source instanceof Pony) {
|
||||
|
|
Loading…
Reference in a new issue