Fixed bug where items weren't correctly ejected

This commit is contained in:
Tschipp 2021-10-22 00:17:20 +02:00
parent f72a8b15d4
commit a595db4d78
2 changed files with 2 additions and 1 deletions

View File

@ -1,5 +1,5 @@
# Sets default memory used for gradle commands. Can be overridden by user or command line properties.
# This is required to provide enough memory for the Minecraft decompilation process.
org.gradle.jvmargs=-Xmx3G
version=1.12.5
version=1.12.6
minecraft_version=1.12.2

View File

@ -507,6 +507,7 @@ public class ItemEvents
{
player.inventory.currentItem = itemSlots.get(0);
((EntityPlayerMP) player).connection.sendPacket(new SPacketHeldItemChange(player.inventory.currentItem));
sendPacket(player, itemSlots.get(0), 0);
}
else
{