Skip to content

Commit

Permalink
fix: valkyrie queen not unlocking dungeon
Browse files Browse the repository at this point in the history
  • Loading branch information
bconlon1 committed Nov 13, 2024
1 parent 6df30dd commit 9e01c80
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ public ValkyrieQueen(EntityType<? extends ValkyrieQueen> type, Level level) {
public SpawnGroupData finalizeSpawn(ServerLevelAccessor level, DifficultyInstance difficulty, MobSpawnType reason, @Nullable SpawnGroupData spawnData) {
this.setBossName(BossNameGenerator.generateValkyrieName(this.getRandom()));
// Set the bounds for the whole dungeon.
if (reason == MobSpawnType.CHUNK_GENERATION) {
if (reason == MobSpawnType.STRUCTURE) {
StructureManager manager = level.getLevel().structureManager();
manager.registryAccess().registry(Registries.STRUCTURE).ifPresent(registry -> {
Structure temple = registry.get(AetherStructures.SILVER_DUNGEON);
Expand Down

0 comments on commit 9e01c80

Please sign in to comment.