Fixed disguises not updating

This commit is contained in:
Sollace 2019-02-23 15:53:27 +02:00
parent b9400cf805
commit 7ee090bbff

View file

@ -38,7 +38,7 @@ import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.tileentity.TileEntitySkull; import net.minecraft.tileentity.TileEntitySkull;
import net.minecraft.util.math.MathHelper; import net.minecraft.util.math.MathHelper;
public class SpellDisguise extends AbstractSpell implements ISuppressable, IFlyingPredicate, IPlayerHeightPredicate { public class SpellDisguise extends AbstractSpell implements IAttachedEffect, ISuppressable, IFlyingPredicate, IPlayerHeightPredicate {
@Nonnull @Nonnull
private String entityId = ""; private String entityId = "";
@ -273,6 +273,11 @@ public class SpellDisguise extends AbstractSpell implements ISuppressable, IFlyi
to.setSneaking(from.isSneaking()); to.setSneaking(from.isSneaking());
} }
@Override
public boolean updateOnPerson(IPlayer caster) {
return update(caster);
}
@SuppressWarnings("unchecked") @SuppressWarnings("unchecked")
@Override @Override
public boolean update(ICaster<?> source) { public boolean update(ICaster<?> source) {