mirror of
https://github.com/Melledy/Grasscutter.git
synced 2024-11-23 08:11:12 +00:00
Set dungeon manager when entering a dungeon
This commit is contained in:
parent
e93175621b
commit
6b492656a1
@ -55,7 +55,6 @@ public final class DungeonManager {
|
||||
this.dungeonData = dungeonData;
|
||||
this.passConfigData = GameData.getDungeonPassConfigDataMap().get(dungeonData.getPassCond());
|
||||
this.finishedConditions = new int[passConfigData.getConds().size()];
|
||||
this.scene.setDungeonManager(this);
|
||||
}
|
||||
|
||||
public void triggerEvent(DungeonPassConditionType conditionType, int... params) {
|
||||
|
@ -116,6 +116,7 @@ public class DungeonSystem extends BaseGameSystem {
|
||||
|
||||
if (player.getWorld().transferPlayerToScene(player, sceneId, data)) {
|
||||
scene = player.getScene();
|
||||
scene.setDungeonManager(new DungeonManager(scene, data));
|
||||
scene.addDungeonSettleObserver(basicDungeonSettleObserver);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user