mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2026-05-28 20:59:51 +08:00
Implement AbilityManager
This commit is contained in:
@@ -12,11 +12,6 @@ public class HandlerEvtDestroyGadgetNotify extends PacketHandler {
|
||||
@Override
|
||||
public void handle(GameSession session, byte[] header, byte[] payload) throws Exception {
|
||||
EvtDestroyGadgetNotify notify = EvtDestroyGadgetNotify.parseFrom(payload);
|
||||
|
||||
// Dont handle in singleplayer
|
||||
if (!session.getPlayer().getWorld().isMultiplayer()) {
|
||||
return;
|
||||
}
|
||||
|
||||
session.getPlayer().getScene().onPlayerDestroyGadget(notify.getEntityId());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user