This commit is contained in:
aozhiwei 2023-03-10 20:52:04 +08:00
parent cfc8789c70
commit ca380e32df

View File

@ -1686,8 +1686,8 @@ void Player::UpdateThrowBomb()
0,
true
);
DecInventory(slot_id, 1);
SyncVolume(slot_id);
DecInventory(equip_meta->_inventory_slot(), 1);
SyncVolume(equip_meta->_inventory_slot());
glm::vec3 bomb_pos = glm::vec3(
throw_bomb->pos().x(),
throw_bomb->pos().y(),
@ -1698,6 +1698,7 @@ void Player::UpdateThrowBomb()
throw_bomb->dir().y(),
throw_bomb->dir().z()
);
SetAttackDir(bomb_dir);
int throw_uniid = room->AllocUniid();
room->frame_event.AddBullet
(