Skip to content
This repository was archived by the owner on Apr 7, 2021. It is now read-only.

Commit dacc2da

Browse files
committed
fix StartGamePacket
1 parent 4fb30fe commit dacc2da

File tree

2 files changed

+7
-11
lines changed

2 files changed

+7
-11
lines changed

pom.xml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
22
<modelVersion>4.0.0</modelVersion>
33
<artifactId>proxy</artifactId>
4-
<version>0.3.4.2</version>
4+
<version>0.3.4.3</version>
55
<name>DragonProxy</name>
66
<groupId>org.dragonet.proxy</groupId>
7-
7+
88
<build>
99
<finalName>dragonproxy-${project.version}</finalName>
1010
<directory>${project.basedir}/target</directory>
@@ -74,7 +74,7 @@
7474
</archive>
7575
</configuration>
7676
</plugin>
77-
77+
7878
<plugin>
7979
<groupId>pl.project13.maven</groupId>
8080
<artifactId>git-commit-id-plugin</artifactId>
@@ -124,7 +124,7 @@
124124
</plugin>
125125
</plugins>
126126
</build>
127-
127+
128128
<repositories>
129129
<repository>
130130
<id>sonatype</id>
@@ -145,7 +145,7 @@
145145
<url>https://jitpack.io</url>
146146
</repository>
147147
</repositories>
148-
148+
149149
<dependencies>
150150
<dependency>
151151
<groupId>net.marfgamer</groupId>

src/main/java/org/dragonet/proxy/protocol/packets/StartGamePacket.java

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ public class StartGamePacket extends PEPacket {
4848
public int serverChunkTickRange;
4949
public boolean hasPlatformBroadcast;
5050
public int platformBroadcastMode;
51-
public int xboxLiveBroadcastMode;
5251
public boolean xboxLiveBroadcastIntent;
5352

5453
public String levelId;
@@ -102,19 +101,17 @@ public void encodePayload() {
102101
putBoolean(trustPlayersEnabled);
103102
putVarInt(defaultPlayerPermission);
104103
putVarInt(gamePublishSetting);
105-
putVarInt(serverChunkTickRadius);
106-
putVarInt(serverChunkTickRange);
104+
putLInt(serverChunkTickRadius);
105+
putInt(serverChunkTickRange);
107106
putBoolean(hasPlatformBroadcast);
108107
putVarInt(platformBroadcastMode);
109-
putVarInt(xboxLiveBroadcastMode);
110108
putBoolean(xboxLiveBroadcastIntent);
111109

112110
putString(levelId);
113111
putString(worldName);
114112
putString(premiumWorldTemplateId);
115113
putBoolean(unknownBool);
116114
putLLong(currentTick);
117-
118115
putVarInt(enchantmentSeed);
119116
}
120117

@@ -156,7 +153,6 @@ public void decodePayload() {
156153
serverChunkTickRange = getInt();
157154
hasPlatformBroadcast = getBoolean();
158155
platformBroadcastMode = getVarInt();
159-
xboxLiveBroadcastMode = getVarInt();
160156
xboxLiveBroadcastIntent = getBoolean();
161157

162158
levelId = getString();

0 commit comments

Comments
 (0)