Fix Irreversible equipping

Fix that can not detach equipment after attached
This commit is contained in:
zhaodice 2022-06-03 13:49:25 +08:00 committed by Melledy
parent 01481fd524
commit 056ba678a8

View File

@ -22,8 +22,12 @@ public class HandlerSetWidgetSlotReq extends PacketHandler {
// WidgetSlotChangeNotify op & slot key // WidgetSlotChangeNotify op & slot key
session.send(new PacketWidgetSlotChangeNotify(WidgetSlotOpOuterClass.WidgetSlotOp.WIDGET_SLOT_OP_DETACH)); session.send(new PacketWidgetSlotChangeNotify(WidgetSlotOpOuterClass.WidgetSlotOp.WIDGET_SLOT_OP_DETACH));
// WidgetSlotChangeNotify slot
session.send(new PacketWidgetSlotChangeNotify(req.getMaterialId())); //only attaching the widget can set it
if(req.getOp() == WidgetSlotOpOuterClass.WidgetSlotOp.WIDGET_SLOT_OP_ATTACH){
// WidgetSlotChangeNotify slot
session.send(new PacketWidgetSlotChangeNotify(req.getMaterialId()));
}
// SetWidgetSlotRsp // SetWidgetSlotRsp
session.send(new PacketSetWidgetSlotRsp(req.getMaterialId())); session.send(new PacketSetWidgetSlotRsp(req.getMaterialId()));