Remove setting the dungeon ID

dungeon ID and dungeon enter will break things
This commit is contained in:
KingRainbow44 2023-05-09 01:19:46 -04:00
parent acc69a33cc
commit 13d95c5c84
No known key found for this signature in database
GPG Key ID: FC2CB64B00D257BE
2 changed files with 5 additions and 4 deletions

View File

@ -11,7 +11,7 @@ import lombok.Data;
@Builder @Builder
public class TeleportProperties { public class TeleportProperties {
private final int sceneId; private final int sceneId;
@Builder.Default private final int dungeonId = 0; private final int dungeonId;
private final PlayerTeleportEvent.TeleportType teleportType; private final PlayerTeleportEvent.TeleportType teleportType;
private final EnterReason enterReason; private final EnterReason enterReason;
private Position teleportTo; private Position teleportTo;

View File

@ -100,9 +100,10 @@ public class PacketPlayerEnterSceneNotify extends BasePacket {
+ "-" + "-"
+ 18402); + 18402);
if (teleportProperties.getDungeonId() != 0) { // INVESTIGATE: The brokenness of scene reloading.
proto.setDungeonId(teleportProperties.getDungeonId()); // if (teleportProperties.getDungeonId() != 0) {
} // proto.setDungeonId(teleportProperties.getDungeonId());
// }
this.setData(proto); this.setData(proto);
} }