mirror of
https://github.com/ClassiCube/MCGalaxy.git
synced 2025-09-23 12:42:22 -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);
|
Warp wp = Find(warp);
|
||||||
if (wp == null) return;
|
if (wp == null) return;
|
||||||
|
|
||||||
Level lvl = LevelInfo.FindExact(wp.lvlname);
|
if (!wp.lvlname.CaselessEq(p.level.name)) {
|
||||||
if (p.level != lvl)
|
PlayerActions.ChangeMap(p, wp.lvlname);
|
||||||
PlayerActions.ChangeMap(p, lvl);
|
}
|
||||||
|
|
||||||
if (p.level.name.CaselessEq(wp.lvlname)) {
|
if (p.level.name.CaselessEq(wp.lvlname)) {
|
||||||
p.SendPos(Entities.SelfID,
|
p.SendPos(Entities.SelfID,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user