|
38 | 38 | // Note: 1.19.4 requires that the billboard is set to something in order to show, on Java Edition |
39 | 39 | public class TextDisplayEntity extends DisplayBaseEntity { |
40 | 40 | public TextDisplayEntity(GeyserSession session, int entityId, long geyserId, UUID uuid, EntityDefinition<?> definition, Vector3f position, Vector3f motion, float yaw, float pitch, float headYaw) { |
41 | | - super(session, entityId, geyserId, uuid, definition, position, motion, yaw, pitch, headYaw); |
| 41 | + super(session, entityId, geyserId, uuid, definition, position.add(0, definition.offset(), 0), motion, yaw, pitch, headYaw); |
| 42 | + } |
| 43 | + |
| 44 | + @Override |
| 45 | + public void moveRelative(double relX, double relY, double relZ, float yaw, float pitch, boolean isOnGround) { |
| 46 | + super.moveRelative(relX, relY + definition.offset(), relZ, yaw, pitch, isOnGround); |
| 47 | + } |
| 48 | + |
| 49 | + @Override |
| 50 | + public void moveAbsolute(Vector3f position, float yaw, float pitch, float headYaw, boolean isOnGround, boolean teleported) { |
| 51 | + super.moveAbsolute(position.add(Vector3f.from(0, definition.offset(), 0)), yaw, pitch, headYaw, isOnGround, teleported); |
42 | 52 | } |
43 | 53 |
|
44 | 54 | @Override |
|
0 commit comments