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

Commit

Permalink
fix StartGamePacket
Browse files Browse the repository at this point in the history
  • Loading branch information
HoverEpic committed Feb 8, 2018
1 parent 4fb30fe commit dacc2da
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 11 deletions.
10 changes: 5 additions & 5 deletions pom.xml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<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">
<modelVersion>4.0.0</modelVersion>
<artifactId>proxy</artifactId>
<version>0.3.4.2</version>
<version>0.3.4.3</version>
<name>DragonProxy</name>
<groupId>org.dragonet.proxy</groupId>

<build>
<finalName>dragonproxy-${project.version}</finalName>
<directory>${project.basedir}/target</directory>
Expand Down Expand Up @@ -74,7 +74,7 @@
</archive>
</configuration>
</plugin>

<plugin>
<groupId>pl.project13.maven</groupId>
<artifactId>git-commit-id-plugin</artifactId>
Expand Down Expand Up @@ -124,7 +124,7 @@
</plugin>
</plugins>
</build>

<repositories>
<repository>
<id>sonatype</id>
Expand All @@ -145,7 +145,7 @@
<url>https://jitpack.io</url>
</repository>
</repositories>

<dependencies>
<dependency>
<groupId>net.marfgamer</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ public class StartGamePacket extends PEPacket {
public int serverChunkTickRange;
public boolean hasPlatformBroadcast;
public int platformBroadcastMode;
public int xboxLiveBroadcastMode;
public boolean xboxLiveBroadcastIntent;

public String levelId;
Expand Down Expand Up @@ -102,19 +101,17 @@ public void encodePayload() {
putBoolean(trustPlayersEnabled);
putVarInt(defaultPlayerPermission);
putVarInt(gamePublishSetting);
putVarInt(serverChunkTickRadius);
putVarInt(serverChunkTickRange);
putLInt(serverChunkTickRadius);
putInt(serverChunkTickRange);
putBoolean(hasPlatformBroadcast);
putVarInt(platformBroadcastMode);
putVarInt(xboxLiveBroadcastMode);
putBoolean(xboxLiveBroadcastIntent);

putString(levelId);
putString(worldName);
putString(premiumWorldTemplateId);
putBoolean(unknownBool);
putLLong(currentTick);

putVarInt(enchantmentSeed);
}

Expand Down Expand Up @@ -156,7 +153,6 @@ public void decodePayload() {
serverChunkTickRange = getInt();
hasPlatformBroadcast = getBoolean();
platformBroadcastMode = getVarInt();
xboxLiveBroadcastMode = getVarInt();
xboxLiveBroadcastIntent = getBoolean();

levelId = getString();
Expand Down

0 comments on commit dacc2da

Please sign in to comment.