Some renames concerning the hotbar (#1943)

* Rename HeldItemChangeS2C to match UpdateSelectedSlotC2S

* Fix bad parameter name of swapSlotWithHotbar
This commit is contained in:
Siphalor 2020-12-28 14:08:19 +01:00 committed by GitHub
parent 27a3bc7045
commit 8fba5222be
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -15,7 +15,7 @@ CLASS net/minecraft/class_1661 net/minecraft/entity/player/PlayerInventory
ARG 3 craftingInventory
METHOD method_7364 getChangeCount ()I
METHOD method_7365 swapSlotWithHotbar (I)V
ARG 1 hotbarSlot
ARG 1 slot
METHOD method_7366 addStack (Lnet/minecraft/class_1799;)I
ARG 1 stack
METHOD method_7367 insertStack (ILnet/minecraft/class_1799;)Z

View File

@ -1,5 +1,5 @@
CLASS net/minecraft/class_2735 net/minecraft/network/packet/s2c/play/HeldItemChangeS2CPacket
FIELD field_12463 slot I
CLASS net/minecraft/class_2735 net/minecraft/network/packet/s2c/play/UpdateSelectedSlotS2CPacket
FIELD field_12463 selectedSlot I
METHOD <init> (I)V
ARG 1 slot
METHOD method_11803 getSlot ()I