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;
@Mixin(DisplayEntity.TextDisplayEntity.class)
public class TextDisplayDismountMixin extends DisplayEntity {
public TextDisplayDismountMixin(EntityType<?> type, World world) {
super(type, world);
public abstract class TextDisplayDismountMixin extends DisplayEntity {
public TextDisplayDismountMixin(EntityType<?> entityType, World world) {
super(entityType, world);
}
@Override
public void refreshData(boolean shouldLerp, float lerpProgress) {}
@Override
public Vec3d updatePassengerForDismount(LivingEntity passenger) {
// get the passenger's horizontal rotation, rotated counterclockwise, because the method rotates it clockwise for some reason