Skip to content

Commit fdecd06

Browse files
committed
Update to 1.19.4
1 parent 3bcd02a commit fdecd06

File tree

5 files changed

+15
-12
lines changed

5 files changed

+15
-12
lines changed

polymer/asset/asset_system.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ bool AssetSystem::Load(render::VulkanRenderer& renderer, const char* jar_path, c
4242
perm_arena.Destroy();
4343
}
4444

45-
perm_arena = CreateArena(Megabytes(256));
45+
perm_arena = CreateArena(Megabytes(256 + 64));
4646

4747
MemoryArena trans_arena = CreateArena(Megabytes(128));
4848
BlockAssetLoader block_loader(perm_arena, trans_arena);

polymer/connection.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ void Connection::SendLoginStart(const String& username) {
151151
void Connection::SendKeepAlive(u64 id) {
152152
builder.WriteU64(id);
153153

154-
builder.Commit(write_buffer, 0x11);
154+
builder.Commit(write_buffer, 0x12);
155155
}
156156

157157
void Connection::SendTeleportConfirm(u64 id) {
@@ -169,7 +169,7 @@ void Connection::SendPlayerPositionAndRotation(const Vector3f& position, float y
169169
builder.WriteFloat(pitch);
170170
builder.WriteU8(on_ground);
171171

172-
builder.Commit(write_buffer, 0x14);
172+
builder.Commit(write_buffer, 0x15);
173173
}
174174

175175
void Connection::SendChatCommand(const String& message) {
@@ -214,7 +214,7 @@ void Connection::SendChatMessage(const String& message) {
214214
void Connection::SendClientStatus(ClientStatusAction action) {
215215
builder.WriteVarInt((u64)action);
216216

217-
builder.Commit(write_buffer, 0x06);
217+
builder.Commit(write_buffer, 0x07);
218218
}
219219

220220
#ifdef _WIN32

polymer/main.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
#include <polymer/gamestate.h>
44
#include <polymer/memory.h>
55
#include <polymer/packet_interpreter.h>
6+
#include <polymer/protocol.h>
67
#include <polymer/types.h>
78

89
#include <polymer/render/render.h>
@@ -24,8 +25,8 @@
2425

2526
namespace polymer {
2627

27-
constexpr const char* kMinecraftJar = "1.19.3.jar";
28-
constexpr const char* kBlocksName = "blocks-1.19.3.json";
28+
constexpr const char* kMinecraftJar = "1.19.4.jar";
29+
constexpr const char* kBlocksName = "blocks-1.19.4.json";
2930

3031
// Window surface width
3132
constexpr u32 kWidth = 1280;
@@ -469,8 +470,6 @@ int run(const LaunchArgs& args) {
469470

470471
connection->SetBlocking(false);
471472

472-
constexpr u32 kProtocolVersion = 761;
473-
474473
connection->SendHandshake(kProtocolVersion, args.server, args.server_port, ProtocolState::Login);
475474
connection->SendLoginStart(args.username);
476475

polymer/packet_interpreter.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -588,9 +588,7 @@ void PacketInterpreter::InterpretPlay(RingBuffer* rb, u64 pkt_id, size_t pkt_siz
588588
}
589589
} break;
590590
case PlayProtocol::PlayerInfoUpdate: {
591-
u64 action_bitset = 0;
592-
593-
rb->ReadVarInt(&action_bitset);
591+
u8 action_bitset = rb->ReadU8();
594592

595593
u64 action_count = 0;
596594
if (!rb->ReadVarInt(&action_count)) {

polymer/protocol.h

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,14 @@
33

44
namespace polymer {
55

6+
constexpr u32 kProtocolVersion = 762;
7+
68
enum class StatusProtocol { Response, Pong, Count };
79

810
enum class LoginProtocol { Disconnect, EncryptionRequest, LoginSuccess, SetCompression, LoginPluginRequest, Count };
911

1012
enum class PlayProtocol {
13+
BundleDelimiter,
1114
SpawnEntity,
1215
SpawnExperienceOrb,
1316
SpawnPlayer,
@@ -19,7 +22,8 @@ enum class PlayProtocol {
1922
BlockAction,
2023
BlockUpdate,
2124
BossBar,
22-
ServerDifficulty,
25+
ChangeDifficulty,
26+
ChunkBiomes,
2327
ClearTitles,
2428
CommandSuggestionsResponse,
2529
Commands,
@@ -30,6 +34,7 @@ enum class PlayProtocol {
3034
SetCooldown,
3135
ChatSuggestions,
3236
PluginMessage,
37+
DamageEvent,
3338
DeleteMessage,
3439
Disconnect,
3540
DisguisedChatMessage,
@@ -38,6 +43,7 @@ enum class PlayProtocol {
3843
UnloadChunk,
3944
GameEvent,
4045
OpenHorseScreen,
46+
HurtAnimation,
4147
InitializeWorldBorder,
4248
KeepAlive,
4349
ChunkData,

0 commit comments

Comments
 (0)