mirror of
https://github.com/Melledy/LunarCore.git
synced 2025-12-14 06:14:45 +01:00
Fix stuff in rogue instances "not despawning"
This commit is contained in:
@@ -489,7 +489,7 @@ public class Player {
|
||||
// Get scene that we want to enter
|
||||
Scene nextScene = null;
|
||||
|
||||
if (getScene() != null && getScene().getPlaneId() == planeId && getScene().getFloorId() == floorId) {
|
||||
if (getScene() != null && getScene().getPlaneId() == planeId && getScene().getFloorId() == floorId && getScene().getPlaneType() != PlaneType.Rogue) {
|
||||
// Don't create a new scene if were already in the one we want to teleport to
|
||||
nextScene = this.scene;
|
||||
} else {
|
||||
|
||||
@@ -62,7 +62,7 @@ public class RogueInstance {
|
||||
return this.getRoomBySiteId(this.getCurrentSiteId());
|
||||
}
|
||||
|
||||
public RogueRoomData enterRoom(int siteId) {
|
||||
public synchronized RogueRoomData enterRoom(int siteId) {
|
||||
// Set status on previous room
|
||||
RogueRoomData prevRoom = getCurrentRoom();
|
||||
if (prevRoom != null) {
|
||||
|
||||
@@ -94,6 +94,10 @@ public class Scene {
|
||||
this.loaded = true;
|
||||
}
|
||||
|
||||
public PlaneType getPlaneType() {
|
||||
return this.getExcel().getPlaneType();
|
||||
}
|
||||
|
||||
private void initSpawns() {
|
||||
for (GroupInfo group : getFloorInfo().getGroups().values()) {
|
||||
// Skip non-server groups
|
||||
|
||||
Reference in New Issue
Block a user