Lint code

This commit is contained in:
KingRainbow44
2023-04-09 14:50:59 -04:00
parent bb6569b736
commit e20c7c151b
20 changed files with 245 additions and 173 deletions

View File

@@ -238,7 +238,7 @@ public final class GameServer extends KcpServer {
public void deregisterWorld(World world) {
// TODO Auto-generated method stub
world.save(); //Save the player's world
world.save(); // Save the player's world
}
public void start() {

View File

@@ -14,10 +14,7 @@ public class PacketPlayerEnterDungeonRsp extends BasePacket {
PlayerEnterDungeonRsp.newBuilder()
.setPointId(pointId)
.setDungeonId(dungeonId)
.setRetcode(
success
? Retcode.RET_SUCC_VALUE
: Retcode.RET_FAIL_VALUE)
.setRetcode(success ? Retcode.RET_SUCC_VALUE : Retcode.RET_FAIL_VALUE)
.build();
this.setData(proto);

View File

@@ -5,7 +5,6 @@ import emu.grasscutter.net.packet.BasePacket;
import emu.grasscutter.net.packet.PacketOpcodes;
import emu.grasscutter.net.proto.PlayerHomeCompInfoNotifyOuterClass;
import emu.grasscutter.net.proto.PlayerHomeCompInfoOuterClass;
import java.util.List;
public class PacketPlayerHomeCompInfoNotify extends BasePacket {

View File

@@ -10,7 +10,6 @@ public class PacketPlayerSetPauseRsp extends BasePacket {
public PacketPlayerSetPauseRsp() {
super(PacketOpcodes.PlayerSetPauseRsp);
this.setData(PlayerSetPauseRsp.newBuilder()
.setRetcode(Retcode.RET_SUCC_VALUE));
this.setData(PlayerSetPauseRsp.newBuilder().setRetcode(Retcode.RET_SUCC_VALUE));
}
}

View File

@@ -9,9 +9,7 @@ public class PacketScenePointUnlockNotify extends BasePacket {
super(PacketOpcodes.ScenePointUnlockNotify);
ScenePointUnlockNotify.Builder p =
ScenePointUnlockNotify.newBuilder()
.setSceneId(sceneId)
.addPointList(pointId);
ScenePointUnlockNotify.newBuilder().setSceneId(sceneId).addPointList(pointId);
this.setData(p);
}
@@ -20,9 +18,7 @@ public class PacketScenePointUnlockNotify extends BasePacket {
super(PacketOpcodes.ScenePointUnlockNotify);
ScenePointUnlockNotify.Builder p =
ScenePointUnlockNotify.newBuilder()
.setSceneId(sceneId)
.addAllPointList(pointIds);
ScenePointUnlockNotify.newBuilder().setSceneId(sceneId).addAllPointList(pointIds);
this.setData(p);
}