fix mixin breaking non-sit text displays, fixes #14

This commit is contained in:
Oth3r 2024-09-30 13:32:35 -05:00
commit 88d523e2dd

View file

@ -9,15 +9,11 @@ import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.Unique; import org.spongepowered.asm.mixin.Unique;
@Mixin(DisplayEntity.TextDisplayEntity.class) @Mixin(DisplayEntity.TextDisplayEntity.class)
public class TextDisplayDismountMixin extends DisplayEntity { public abstract class TextDisplayDismountMixin extends DisplayEntity {
public TextDisplayDismountMixin(EntityType<?> entityType, World world) {
public TextDisplayDismountMixin(EntityType<?> type, World world) { super(entityType, world);
super(type, world);
} }
@Override
public void refreshData(boolean shouldLerp, float lerpProgress) {}
@Override @Override
public Vec3d updatePassengerForDismount(LivingEntity passenger) { public Vec3d updatePassengerForDismount(LivingEntity passenger) {
// get the passenger's horizontal rotation, rotated counterclockwise, because the method rotates it clockwise for some reason // get the passenger's horizontal rotation, rotated counterclockwise, because the method rotates it clockwise for some reason