mirror of
https://github.com/ClassiCube/MCGalaxy.git
synced 2025-09-24 05:03:34 -04:00
Prevent using /museum to bypass pervisit restrictions
This commit is contained in:
parent
288d5c63fc
commit
4ad3754f4c
@ -63,7 +63,8 @@ namespace MCGalaxy.Commands.World {
|
|||||||
Level lvl = IMapImporter.Formats[0].Read(path, name, false);
|
Level lvl = IMapImporter.Formats[0].Read(path, name, false);
|
||||||
lvl.MapName = mapName;
|
lvl.MapName = mapName;
|
||||||
SetLevelProps(lvl);
|
SetLevelProps(lvl);
|
||||||
Level.LoadMetadata(lvl);
|
Level.LoadMetadata(lvl);
|
||||||
|
if (!lvl.CanJoin(p)) return;
|
||||||
|
|
||||||
p.Loading = true;
|
p.Loading = true;
|
||||||
Entities.DespawnEntities(p);
|
Entities.DespawnEntities(p);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user