Skip to content

Commit

Permalink
Fixed LivingEntity#setItemSlot. (#1537)
Browse files Browse the repository at this point in the history
Signed-off-by: 秋雨落 <[email protected]>
  • Loading branch information
qyl27 committed Nov 8, 2024
1 parent cc875d1 commit fd678b5
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -985,6 +985,10 @@ public final void setArrowCount(int count, boolean reset) {
return CraftEventFactory.callArrowBodyCountChangeEvent((LivingEntity) (Object) this, this.getArrowCount(), newCount, reset).isCancelled();
}

public void setItemSlot(EquipmentSlot slot, ItemStack stack, boolean silent) {
this.setItemSlot(slot, stack);
}

public void onEquipItem(EquipmentSlot slotIn, ItemStack stack, boolean silent) {
this.setItemSlot(slotIn, stack);
}
Expand Down

0 comments on commit fd678b5

Please sign in to comment.