mirror of
https://github.com/Melledy/Grasscutter.git
synced 2025-02-05 11:28:46 +00:00
Fix Irreversible equipping
Fix that can not detach equipment after attached
This commit is contained in:
parent
01481fd524
commit
056ba678a8
@ -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));
|
||||||
|
|
||||||
|
//only attaching the widget can set it
|
||||||
|
if(req.getOp() == WidgetSlotOpOuterClass.WidgetSlotOp.WIDGET_SLOT_OP_ATTACH){
|
||||||
// WidgetSlotChangeNotify slot
|
// WidgetSlotChangeNotify slot
|
||||||
session.send(new PacketWidgetSlotChangeNotify(req.getMaterialId()));
|
session.send(new PacketWidgetSlotChangeNotify(req.getMaterialId()));
|
||||||
|
}
|
||||||
|
|
||||||
// SetWidgetSlotRsp
|
// SetWidgetSlotRsp
|
||||||
session.send(new PacketSetWidgetSlotRsp(req.getMaterialId()));
|
session.send(new PacketSetWidgetSlotRsp(req.getMaterialId()));
|
||||||
|
Loading…
Reference in New Issue
Block a user