chore: minor cleanup

This commit is contained in:
mworzala 2023-12-01 17:11:23 +02:00 committed by Matt Worzala
parent 8fcb53e498
commit ac4c54731c
2 changed files with 3 additions and 3 deletions

View File

@ -191,6 +191,6 @@ public class PlayerInit {
.append(Component.text("ACQ TIME: " + MathUtils.round(tickMonitor.getAcquisitionTime(), 2) + "ms")); .append(Component.text("ACQ TIME: " + MathUtils.round(tickMonitor.getAcquisitionTime(), 2) + "ms"));
final Component footer = benchmarkManager.getCpuMonitoringMessage(); final Component footer = benchmarkManager.getCpuMonitoringMessage();
Audiences.players().sendPlayerListHeaderAndFooter(header, footer); Audiences.players().sendPlayerListHeaderAndFooter(header, footer);
}).repeat(10, TimeUnit.SERVER_TICK);//.schedule(); }).repeat(10, TimeUnit.SERVER_TICK); //.schedule();
} }
} }

View File

@ -16,7 +16,7 @@ public class AbstractDisplayMeta extends EntityMeta {
super(entity, metadata); super(entity, metadata);
} }
public long getTransformationInterpolationStartDelta() { public int getTransformationInterpolationStartDelta() {
return super.metadata.getIndex(OFFSET, 0); return super.metadata.getIndex(OFFSET, 0);
} }
@ -32,7 +32,7 @@ public class AbstractDisplayMeta extends EntityMeta {
super.metadata.setIndex(OFFSET + 1, Metadata.VarInt(value)); super.metadata.setIndex(OFFSET + 1, Metadata.VarInt(value));
} }
public long getPosRotInterpolationDuration() { public int getPosRotInterpolationDuration() {
return super.metadata.getIndex(OFFSET + 2, 0); return super.metadata.getIndex(OFFSET + 2, 0);
} }