mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2025-12-17 09:25:06 +01:00
Fix whitespace [skip actions]
This commit is contained in:
@@ -155,7 +155,7 @@ public final class RegionHandler implements Router {
|
||||
|
||||
String key_id = ctx.queryParam("key_id");
|
||||
|
||||
if(key_id == null)
|
||||
if (key_id == null)
|
||||
throw new Exception("Key ID was not set");
|
||||
|
||||
Cipher cipher = Cipher.getInstance("RSA/ECB/PKCS1Padding");
|
||||
|
||||
@@ -6,17 +6,17 @@ import emu.grasscutter.net.proto.DestroyMaterialRspOuterClass.DestroyMaterialRsp
|
||||
import it.unimi.dsi.fastutil.ints.Int2IntMap;
|
||||
|
||||
public class PacketDestroyMaterialRsp extends BasePacket {
|
||||
|
||||
public PacketDestroyMaterialRsp(Int2IntMap returnMaterialMap) {
|
||||
super(PacketOpcodes.DestroyMaterialRsp);
|
||||
|
||||
|
||||
public PacketDestroyMaterialRsp(Int2IntMap returnMaterialMap) {
|
||||
super(PacketOpcodes.DestroyMaterialRsp);
|
||||
|
||||
var proto = DestroyMaterialRsp.newBuilder();
|
||||
|
||||
|
||||
returnMaterialMap.forEach((id, count) -> {
|
||||
proto.addItemIdList(id);
|
||||
proto.addItemCountList(count);
|
||||
});
|
||||
|
||||
this.setData(proto);
|
||||
}
|
||||
|
||||
this.setData(proto);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -12,7 +12,7 @@ public class PacketForgeStartRsp extends BasePacket {
|
||||
|
||||
ForgeStartRsp proto = ForgeStartRsp.newBuilder()
|
||||
.setRetcode(retcode.getNumber())
|
||||
.build();
|
||||
.build();
|
||||
|
||||
this.setData(proto);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user