Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
/// <summary>
/// Thanks to some idiot at Mojang
/// </summary>
private static int DataSlotToNetworkSlot(int index)
{
if (index <= 8)
index += 36;
else if (index == 100)
index = 8;
else if (index == 101)
index = 7;
else if (index == 102)
index = 6;
else if (index == 103)
index = 5;
else if (index >= 80 && index <= 83)
index -= 79;
return index;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment