Updated Via*

This commit is contained in:
RaphiMC 2024-05-22 12:17:28 +02:00
parent a0c7440103
commit 0a74bbec23
No known key found for this signature in database
GPG Key ID: 0F6BB0657A03AC94
2 changed files with 8 additions and 8 deletions

View File

@ -54,11 +54,11 @@ repositories {
}
dependencies {
include "com.viaversion:viaversion-common:5.0.0-20240519.100112-11"
include "com.viaversion:viabackwards-common:5.0.0-20240515.152913-2"
include "com.viaversion:viarewind-common:4.0.0-20240518.193415-3"
include "net.raphimc:ViaLegacy:3.0.0-20240517.210413-2"
include "net.raphimc:ViaAprilFools:3.0.0-20240517.172611-2"
include "com.viaversion:viaversion-common:5.0.0-20240522.084313-18"
include "com.viaversion:viabackwards-common:5.0.0-20240522.081413-6"
include "com.viaversion:viarewind-common:4.0.0-20240522.101314-4"
include "net.raphimc:ViaLegacy:3.0.0-20240521.130712-3"
include "net.raphimc:ViaAprilFools:3.0.0-20240521.130815-3"
include("net.raphimc:ViaBedrock:0.0.8-SNAPSHOT") {
exclude group: "io.netty"
exclude group: "io.jsonwebtoken"

View File

@ -19,7 +19,7 @@ package net.raphimc.viaproxy.protocoltranslator.viaproxy.loading_terrain_fix;
import com.viaversion.viaversion.api.connection.StoredObject;
import com.viaversion.viaversion.api.connection.UserConnection;
import com.viaversion.viaversion.api.minecraft.Position;
import com.viaversion.viaversion.api.minecraft.BlockPosition;
import com.viaversion.viaversion.api.protocol.packet.PacketWrapper;
import com.viaversion.viaversion.api.type.Types;
import com.viaversion.viaversion.protocols.v1_17_1to1_18.packet.ClientboundPackets1_18;
@ -27,14 +27,14 @@ import com.viaversion.viaversion.protocols.v1_18to1_18_2.Protocol1_18To1_18_2;
public class SpawnPositionTracker extends StoredObject {
private Position spawnPosition = new Position(8, 64, 8);
private BlockPosition spawnPosition = new BlockPosition(8, 64, 8);
private float angle = 0F;
public SpawnPositionTracker(final UserConnection user) {
super(user);
}
public void setSpawnPosition(final Position spawnPosition, final float angle) {
public void setSpawnPosition(final BlockPosition spawnPosition, final float angle) {
this.spawnPosition = spawnPosition;
this.angle = angle;
}