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); }