Run formatter on new events

This commit is contained in:
KingRainbow44 2023-08-27 23:36:41 -04:00
parent 0ad8eb443b
commit 8c0032fc75
No known key found for this signature in database
GPG Key ID: FC2CB64B00D257BE
5 changed files with 10 additions and 18 deletions

View File

@ -12,13 +12,12 @@ import emu.grasscutter.game.props.ActionReason;
import emu.grasscutter.net.proto.AchievementOuterClass.Achievement.Status;
import emu.grasscutter.server.event.player.PlayerCompleteAchievementEvent;
import emu.grasscutter.server.packet.send.*;
import lombok.*;
import org.bson.types.ObjectId;
import javax.annotation.Nullable;
import java.util.*;
import java.util.concurrent.atomic.AtomicInteger;
import java.util.function.IntSupplier;
import javax.annotation.Nullable;
import lombok.*;
import org.bson.types.ObjectId;
@Entity("achievements")
@Data

View File

@ -18,11 +18,10 @@ import emu.grasscutter.server.event.player.PlayerFinishDungeonEvent;
import emu.grasscutter.server.packet.send.*;
import emu.grasscutter.utils.Utils;
import it.unimi.dsi.fastutil.ints.*;
import lombok.*;
import javax.annotation.Nullable;
import java.util.*;
import java.util.stream.*;
import javax.annotation.Nullable;
import lombok.*;
/**
* TODO handle time limits TODO handle respawn points TODO handle team wipes and respawns TODO check
@ -282,10 +281,7 @@ public final class DungeonManager {
this.endDungeon(BaseDungeonResult.DungeonEndReason.COMPLETED);
// Call PlayerFinishDungeonEvent.
new PlayerFinishDungeonEvent(
this.getScene().getPlayers(),
this.getScene(), this
).call();
new PlayerFinishDungeonEvent(this.getScene().getPlayers(), this.getScene(), this).call();
}
public void quitDungeon() {

View File

@ -16,10 +16,9 @@ import emu.grasscutter.server.event.player.PlayerCompleteQuestEvent;
import emu.grasscutter.server.packet.send.*;
import emu.grasscutter.utils.Utils;
import it.unimi.dsi.fastutil.ints.IntIntImmutablePair;
import lombok.*;
import javax.script.Bindings;
import java.util.*;
import javax.script.Bindings;
import lombok.*;
@Entity
public class GameQuest {

View File

@ -18,10 +18,9 @@ import emu.grasscutter.server.game.*;
import emu.grasscutter.server.packet.send.*;
import emu.grasscutter.utils.Utils;
import it.unimi.dsi.fastutil.ints.*;
import lombok.val;
import java.util.*;
import java.util.stream.Stream;
import lombok.val;
public class InventorySystem extends BaseGameSystem {
private static final Int2IntMap weaponRefundMaterials = new Int2IntArrayMap();

View File

@ -4,9 +4,8 @@ import emu.grasscutter.game.dungeons.DungeonManager;
import emu.grasscutter.game.player.Player;
import emu.grasscutter.game.world.Scene;
import emu.grasscutter.server.event.Event;
import lombok.*;
import java.util.List;
import lombok.*;
@Getter
@RequiredArgsConstructor