Format code [skip actions]

This commit is contained in:
github-actions 2023-06-17 19:58:14 +00:00
parent 4ebe6fbf63
commit 97b28b13fe
2 changed files with 6 additions and 3 deletions

View File

@ -134,9 +134,13 @@ public final class DungeonManager {
}
// Get and roll rewards.
List<GameItem> rewards = player.getServer().getDropSystem().handleDungeonRewardDrop(dungeonData.getStatueDrop(), useCondensed);
List<GameItem> rewards =
player
.getServer()
.getDropSystem()
.handleDungeonRewardDrop(dungeonData.getStatueDrop(), useCondensed);
if (rewards.isEmpty()) {
//fallback to legacy drop system
// fallback to legacy drop system
Grasscutter.getLogger().debug("dungeon drop failed for {}", dungeonData.getId());
rewards = new ArrayList<>(this.rollRewards(useCondensed));
}

View File

@ -1,6 +1,5 @@
package emu.grasscutter.game.entity.gadget;
import emu.grasscutter.Grasscutter;
import emu.grasscutter.game.dungeons.challenge.DungeonChallenge;
import emu.grasscutter.game.entity.EntityGadget;
import emu.grasscutter.game.player.Player;