Skip to content

Commit c7fa31a

Browse files
committed
1.20.80 update
1 parent ce1ef90 commit c7fa31a

File tree

6 files changed

+2507
-2708
lines changed

6 files changed

+2507
-2708
lines changed

.github/workflows/dotnet.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,5 +38,5 @@ jobs:
3838
file: src/MiNET/MiNET.Console/minet.zip
3939
asset_name: MiNET.zip
4040
tag: ${{ github.ref }}
41-
release_name: MiNET-CobwebSMP 1.13.0.9 (1.20.70)
41+
release_name: MiNET-CobwebSMP 1.13.0.10 (1.20.80)
4242
body: ${{ github.event.head_commit.message }}

src/MiNET/MiNET/MiNET.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<PropertyGroup>
33
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
44
<PackageId>MiNET-CobwebSMP</PackageId>
5-
<Version>1.13.0.9</Version>
5+
<Version>1.13.0.10</Version>
66
<Authors>gurun</Authors>
77
<Company>Niclas Olofsson</Company>
88
<Description>MiNET - a Minecraft PocketEdition Server</Description>

src/MiNET/MiNET/Net/MCPE Protocol.cs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ namespace MiNET.Net
4646
{
4747
public class McpeProtocolInfo
4848
{
49-
public const int ProtocolVersion = 662;
50-
public const string GameVersion = "1.20.70";
49+
public const int ProtocolVersion = 671;
50+
public const string GameVersion = "1.20.80";
5151
}
5252

5353
public interface IMcpeMessageHandler
@@ -2288,6 +2288,7 @@ public partial class McpeResourcePackStack : Packet<McpeResourcePackStack>
22882288
public string gameVersion; // = null;
22892289
public Experiments experiments; // = null;
22902290
public bool experimentsPreviouslyToggled; // = null;
2291+
public bool hasEditorPacks; // = null;
22912292

22922293
public McpeResourcePackStack()
22932294
{
@@ -2307,6 +2308,7 @@ protected override void EncodePacket()
23072308
Write(gameVersion);
23082309
Write(experiments);
23092310
Write(experimentsPreviouslyToggled);
2311+
Write(hasEditorPacks);
23102312

23112313
AfterEncode();
23122314
}
@@ -2326,6 +2328,7 @@ protected override void DecodePacket()
23262328
gameVersion = ReadString();
23272329
experiments = ReadExperiments();
23282330
experimentsPreviouslyToggled = ReadBool();
2331+
hasEditorPacks = ReadBool();
23292332

23302333
AfterDecode();
23312334
}
@@ -2343,6 +2346,7 @@ protected override void ResetPacket()
23432346
gameVersion=default(string);
23442347
experiments=default(Experiments);
23452348
experimentsPreviouslyToggled=default(bool);
2349+
hasEditorPacks=default(bool);
23462350
}
23472351

23482352
}

src/MiNET/MiNET/Net/McpeStartGame.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ public class LevelSettings
3535

3636
public int generator; // = null;
3737
public int gamemode; // = null;
38+
public bool hardcoreEnabled; // = null;
3839
public int difficulty; // = null;
3940
public int x; // = null;
4041
public int y; // = null;
@@ -91,6 +92,7 @@ public void Write(Packet packet)
9192

9293
packet.WriteSignedVarInt(generator);
9394
packet.WriteSignedVarInt(gamemode);
95+
packet.Write(false); //hardcore
9496
packet.WriteSignedVarInt(difficulty);
9597

9698
packet.WriteSignedVarInt(x);
@@ -150,6 +152,7 @@ public void Read(Packet packet)
150152

151153
generator = packet.ReadSignedVarInt();
152154
gamemode = packet.ReadSignedVarInt();
155+
hardcoreEnabled = packet.ReadBool();
153156
difficulty = packet.ReadSignedVarInt();
154157

155158
x = packet.ReadSignedVarInt();

src/MiNET/MiNET/Net/Packet.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2753,6 +2753,7 @@ public void Write(Recipes recipes)
27532753
Write(rec.Id);
27542754
Write(rec.Block);
27552755
WriteUnsignedVarInt(0); // priority
2756+
Write(true); //todo: whats this?
27562757
WriteVarInt(UniqueId); // unique id
27572758
if(!RecipeManager.resultMapLocked){ RecipeManager.resultMap.Add(UniqueId, rec.Result[0]); }
27582759
break;

0 commit comments

Comments
 (0)