mirror of
https://github.com/Melledy/LunarCore.git
synced 2025-12-12 21:34:35 +01:00
Force the client to use the main character while on the train
This commit is contained in:
@@ -10,6 +10,7 @@ public class GameConstants {
|
||||
public static final ZoneOffset CURRENT_OFFSET = ZoneOffset.systemDefault().getRules().getOffset(Instant.now());
|
||||
|
||||
// Game
|
||||
public static final int HOME_PLANE_ID = 10000;
|
||||
public static final String DEFAULT_NAME = "Trailblazer";
|
||||
public static final int MAX_TRAILBLAZER_LEVEL = 70;
|
||||
public static final int MAX_STAMINA = 240;
|
||||
|
||||
@@ -3,6 +3,7 @@ package emu.lunarcore.game.scene;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import emu.lunarcore.GameConstants;
|
||||
import emu.lunarcore.data.GameData;
|
||||
import emu.lunarcore.data.config.FloorInfo;
|
||||
import emu.lunarcore.data.config.GroupInfo;
|
||||
@@ -184,7 +185,7 @@ public class Scene {
|
||||
// Proto
|
||||
var proto = SceneInfo.newInstance()
|
||||
.setWorldId(301)
|
||||
.setLCMMECNPOBA(2)
|
||||
.setLCMMECNPOBA(this.getPlaneId() == GameConstants.HOME_PLANE_ID ? 3 : 2)
|
||||
.setPlaneId(this.getPlaneId())
|
||||
.setFloorId(this.getFloorId())
|
||||
.setEntryId(this.getEntryId());
|
||||
|
||||
Reference in New Issue
Block a user