Skip to content

Commit e6ea4e1

Browse files
BHare1985p2r3
authored andcommitted
Update dimension id to 1 in login and respawn packets
Changed the dimension id from 0 to 1 in sc_loginPlay and sc_respawn functions to reflect the correct dimension for client connections.
1 parent 756d84a commit e6ea4e1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/packets.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ int sc_loginPlay (int client_fd) {
213213
// limited crafting
214214
writeByte(client_fd, false);
215215
// dimension id
216-
writeVarInt(client_fd, 0);
216+
writeVarInt(client_fd, 1);
217217
// dimension name
218218
writeVarInt(client_fd, 9);
219219
send_all(client_fd, dimension, 9);
@@ -1049,7 +1049,7 @@ int sc_respawn (int client_fd) {
10491049
writeByte(client_fd, 0x4B);
10501050

10511051
// dimension id
1052-
writeVarInt(client_fd, 0);
1052+
writeVarInt(client_fd, 1);
10531053
// dimension name
10541054
const char *dimension = "overworld";
10551055
writeVarInt(client_fd, 9);

0 commit comments

Comments
 (0)