mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2025-12-21 19:34:42 +01:00
Lint code
This commit is contained in:
@@ -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() {
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user