mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2026-11-18 17:55:27 +00:00
fix(inventory): the ridden object and the mount item can't be deleted, as the client
LWOInventoryComponent_Common::CanRemoveFromInventory (0x00ce0d20) refuses the possessed object (GetPossessedObject) and the mount item (GetMountInventoryID) before the operator bypass and the deletion restrictions. The server let a player delete the mount they were riding. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -478,7 +478,8 @@ public:
|
||||
|
||||
/**
|
||||
* Whether the player may delete this item: its ItemComponent's DeletionRestrictions row, as the client checks it
|
||||
* (LWOInventoryComponent_Common::CanRemoveFromInventory @ 00ce0d20 in 1.10.64). Operators may delete anything.
|
||||
* (LWOInventoryComponent_Common::CanRemoveFromInventory @ 00ce0d20 in 1.10.64). The possessed object and the mount
|
||||
* item are never deleted; otherwise operators may delete anything.
|
||||
*/
|
||||
bool CanDelete(const Item& item) const;
|
||||
void OnMoveItemInInventory(const GameMessages::MoveItemInInventory& msg);
|
||||
|
||||
Reference in New Issue
Block a user