mirror of
https://github.com/Melledy/LunarCore.git
synced 2025-12-23 10:44:36 +01:00
Fix being unable to lock lightcones
This commit is contained in:
@@ -13,7 +13,10 @@ public class HandlerLockEquipmentCsReq extends PacketHandler {
|
||||
public void handle(GameSession session, byte[] data) throws Exception {
|
||||
var req = LockEquipmentCsReq.parseFrom(data);
|
||||
|
||||
session.getServer().getInventoryService().lockItem(session.getPlayer(), req.getEquipmentUniqueId(), req.getIsProtected());
|
||||
for (int id : req.getEquipmentIdList()) {
|
||||
session.getServer().getInventoryService().lockItem(session.getPlayer(), id, req.getIsProtected());
|
||||
}
|
||||
|
||||
session.send(CmdId.LockEquipmentScRsp);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user