Skip to content

Commit b4a5506

Browse files
committed
1.21.20
1 parent 9825953 commit b4a5506

File tree

16 files changed

+4009
-3993
lines changed

16 files changed

+4009
-3993
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.13 (1.21.2)
41+
release_name: MiNET-CobwebSMP 1.13.0.14 (1.21.20)
4242
body: ${{ github.event.head_commit.message }}

src/MiNET/MiNET.Client/MiNetClient.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -689,7 +689,11 @@ private static string FlagsToString(long input)
689689
List<Entity.DataFlags> flags = new List<Entity.DataFlags>();
690690
foreach (var val in Enum.GetValues(typeof(Entity.DataFlags)))
691691
{
692-
if (bits[(int) val]) flags.Add((Entity.DataFlags) val);
692+
int index = (int) val;
693+
if (index < bits.Count && bits[index])
694+
{
695+
flags.Add((Entity.DataFlags) val);
696+
}
693697
}
694698

695699
StringBuilder sb = new StringBuilder();

0 commit comments

Comments
 (0)