mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2026-05-23 21:29:51 +08:00
Run IntelliJ IDEA code formatter
This commit is contained in:
@@ -6,16 +6,16 @@ import emu.grasscutter.net.packet.PacketOpcodes;
|
||||
import emu.grasscutter.net.proto.GadgetStateNotifyOuterClass.GadgetStateNotify;
|
||||
|
||||
public class PacketGadgetStateNotify extends BasePacket {
|
||||
|
||||
public PacketGadgetStateNotify(EntityGadget gadget, int newState) {
|
||||
super(PacketOpcodes.GadgetStateNotify);
|
||||
|
||||
GadgetStateNotify proto = GadgetStateNotify.newBuilder()
|
||||
.setGadgetEntityId(gadget.getId())
|
||||
.setGadgetState(newState)
|
||||
.setIsEnableInteract(true)
|
||||
.build();
|
||||
|
||||
this.setData(proto);
|
||||
}
|
||||
|
||||
public PacketGadgetStateNotify(EntityGadget gadget, int newState) {
|
||||
super(PacketOpcodes.GadgetStateNotify);
|
||||
|
||||
GadgetStateNotify proto = GadgetStateNotify.newBuilder()
|
||||
.setGadgetEntityId(gadget.getId())
|
||||
.setGadgetState(newState)
|
||||
.setIsEnableInteract(true)
|
||||
.build();
|
||||
|
||||
this.setData(proto);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user