From 1b286979c53b1d64ff5b3b374ca8f26f9ca2dbbd Mon Sep 17 00:00:00 2001 From: mworzala Date: Fri, 1 Dec 2023 17:11:23 +0200 Subject: [PATCH] chore: minor cleanup (cherry picked from commit ac4c54731c17537b98665684593980b63088d30d) --- demo/src/main/java/net/minestom/demo/PlayerInit.java | 2 +- .../server/entity/metadata/display/AbstractDisplayMeta.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/demo/src/main/java/net/minestom/demo/PlayerInit.java b/demo/src/main/java/net/minestom/demo/PlayerInit.java index 556d1f863..b3846abd3 100644 --- a/demo/src/main/java/net/minestom/demo/PlayerInit.java +++ b/demo/src/main/java/net/minestom/demo/PlayerInit.java @@ -178,6 +178,6 @@ public class PlayerInit { .append(Component.text("ACQ TIME: " + MathUtils.round(tickMonitor.getAcquisitionTime(), 2) + "ms")); final Component footer = benchmarkManager.getCpuMonitoringMessage(); Audiences.players().sendPlayerListHeaderAndFooter(header, footer); - }).repeat(10, TimeUnit.SERVER_TICK);//.schedule(); + }).repeat(10, TimeUnit.SERVER_TICK); //.schedule(); } } diff --git a/src/main/java/net/minestom/server/entity/metadata/display/AbstractDisplayMeta.java b/src/main/java/net/minestom/server/entity/metadata/display/AbstractDisplayMeta.java index 44f078cd4..113c08dea 100644 --- a/src/main/java/net/minestom/server/entity/metadata/display/AbstractDisplayMeta.java +++ b/src/main/java/net/minestom/server/entity/metadata/display/AbstractDisplayMeta.java @@ -16,7 +16,7 @@ public class AbstractDisplayMeta extends EntityMeta { super(entity, metadata); } - public long getTransformationInterpolationStartDelta() { + public int getTransformationInterpolationStartDelta() { return super.metadata.getIndex(OFFSET, 0); } @@ -32,7 +32,7 @@ public class AbstractDisplayMeta extends EntityMeta { super.metadata.setIndex(OFFSET + 1, Metadata.VarInt(value)); } - public long getPosRotInterpolationDuration() { + public int getPosRotInterpolationDuration() { return super.metadata.getIndex(OFFSET + 2, 0); }