mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2025-01-24 19:23:01 +08:00
Remove setting the dungeon ID
dungeon ID and dungeon enter will break things
This commit is contained in:
parent
acc69a33cc
commit
13d95c5c84
@ -11,7 +11,7 @@ import lombok.Data;
|
||||
@Builder
|
||||
public class TeleportProperties {
|
||||
private final int sceneId;
|
||||
@Builder.Default private final int dungeonId = 0;
|
||||
private final int dungeonId;
|
||||
private final PlayerTeleportEvent.TeleportType teleportType;
|
||||
private final EnterReason enterReason;
|
||||
private Position teleportTo;
|
||||
|
@ -100,9 +100,10 @@ public class PacketPlayerEnterSceneNotify extends BasePacket {
|
||||
+ "-"
|
||||
+ 18402);
|
||||
|
||||
if (teleportProperties.getDungeonId() != 0) {
|
||||
proto.setDungeonId(teleportProperties.getDungeonId());
|
||||
}
|
||||
// INVESTIGATE: The brokenness of scene reloading.
|
||||
// if (teleportProperties.getDungeonId() != 0) {
|
||||
// proto.setDungeonId(teleportProperties.getDungeonId());
|
||||
// }
|
||||
|
||||
this.setData(proto);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user