Updated Via API usage
Some checks failed
build-docker / build (push) Has been cancelled
build / build (push) Has been cancelled

This commit is contained in:
RaphiMC 2024-08-23 15:12:23 +02:00
parent 493341c058
commit 87de244ab4
No known key found for this signature in database
GPG key ID: 0F6BB0657A03AC94

View file

@ -40,7 +40,7 @@ public class SpawnPositionTracker extends StoredObject {
} }
public void sendSpawnPosition() { public void sendSpawnPosition() {
final PacketWrapper setDefaultSpawnPosition = PacketWrapper.create(ClientboundPackets1_18.SET_DEFAULT_SPAWN_POSITION, this.getUser()); final PacketWrapper setDefaultSpawnPosition = PacketWrapper.create(ClientboundPackets1_18.SET_DEFAULT_SPAWN_POSITION, this.user());
setDefaultSpawnPosition.write(Types.BLOCK_POSITION1_14, this.spawnPosition); // position setDefaultSpawnPosition.write(Types.BLOCK_POSITION1_14, this.spawnPosition); // position
setDefaultSpawnPosition.write(Types.FLOAT, this.angle); // angle setDefaultSpawnPosition.write(Types.FLOAT, this.angle); // angle
setDefaultSpawnPosition.send(Protocol1_18To1_18_2.class); setDefaultSpawnPosition.send(Protocol1_18To1_18_2.class);