mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2025-01-24 19:13:21 +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
|
@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;
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user