mirror of
https://github.com/ClassiCube/MCGalaxy.git
synced 2025-09-23 04:32:50 -04:00
Fix /waypoint on unloaded maps. (Thanks VenkSociety)
This commit is contained in:
parent
c5d7c76f06
commit
9a06be5e4e
@ -46,9 +46,9 @@ namespace MCGalaxy {
|
||||
Warp wp = Find(warp);
|
||||
if (wp == null) return;
|
||||
|
||||
Level lvl = LevelInfo.FindExact(wp.lvlname);
|
||||
if (p.level != lvl)
|
||||
PlayerActions.ChangeMap(p, lvl);
|
||||
if (!wp.lvlname.CaselessEq(p.level.name)) {
|
||||
PlayerActions.ChangeMap(p, wp.lvlname);
|
||||
}
|
||||
|
||||
if (p.level.name.CaselessEq(wp.lvlname)) {
|
||||
p.SendPos(Entities.SelfID,
|
||||
|
Loading…
x
Reference in New Issue
Block a user