Skip to content

Commit 40036f1

Browse files
committed
hotfix: crash when connecting to a server with never version
(yet it's impossible, but soon it will be very possible)
1 parent f5a8dbd commit 40036f1

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,11 @@ version = project.mod_version
5353
group = project.maven_group
5454

5555

56-
String version_name = project.version, isRelease, changes ="""changelog
56+
String version_name = project.version, isRelease, changes ="""Crash when connecting to a server with never Emotecraft
5757
"""
5858

59-
//isRelease = "release"
60-
isRelease = "beta"
59+
isRelease = "release"
60+
//isRelease = "beta"
6161
//isRelease = "alpha"
6262
//changes = "This is a test for automated publishing, don't use this"
6363

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ org.gradle.jvmargs = -Xmx1G
44
#See copy-paste
55

66
#Mod properties
7-
mod_version = 1.3.0
7+
mod_version = 1.3.1
88
maven_group = com.kosmx.emotecraft
99
archives_base_name = emotecraft
1010

src/main/java/com/kosmx/emotecraftCommon/network/EmotePacket.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public EmoteData getEmote(){
5151

5252
public void write(ByteBuf buf, int version){
5353
this.version = Math.min(version, CommonData.networkingVersion);
54-
buf.writeInt(version);
54+
buf.writeInt(this.version);
5555
buf.writeBoolean(isRepeat);
5656
CommonNetwork.writeUUID(buf, player);
5757
buf.writeInt(emote.beginTick);

0 commit comments

Comments
 (0)