Skip to content

Commit f83dc06

Browse files
committed
Update codes follow core changes (1.61c)
1 parent f9e829c commit f83dc06

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

Scripts/AimAtCursorPlayerCharacterController.cs

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,14 @@ protected void UseItem(string id, Vector3? aimPosition)
452452
out equipWeaponSet,
453453
out characterItem))
454454
{
455-
PlayerCharacterEntity.RequestUnEquipItem(inventoryType, (short)itemIndex, equipWeaponSet);
455+
GameInstance.ClientInventoryHandlers.RequestUnEquipItem(
456+
PlayerCharacterEntity.Id,
457+
inventoryType,
458+
(short)itemIndex,
459+
equipWeaponSet,
460+
-1,
461+
UIInventoryResponses.ResponseUnEquipArmor,
462+
UIInventoryResponses.ResponseUnEquipWeapon);
456463
return;
457464
}
458465
item = characterItem.GetItem();
@@ -466,7 +473,11 @@ protected void UseItem(string id, Vector3? aimPosition)
466473

467474
if (item.IsEquipment())
468475
{
469-
PlayerCharacterEntity.CallServerEquipItem((short)itemIndex);
476+
GameInstance.ClientInventoryHandlers.RequestEquipItem(
477+
PlayerCharacterEntity,
478+
(short)itemIndex,
479+
UIInventoryResponses.ResponseEquipArmor,
480+
UIInventoryResponses.ResponseEquipWeapon);
470481
}
471482
else if (item.IsSkill())
472483
{

0 commit comments

Comments
 (0)