mirror of
https://github.com/ClassiCube/MCGalaxy.git
synced 2025-09-23 12:42:22 -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);
|
||||
lvl.MapName = mapName;
|
||||
SetLevelProps(lvl);
|
||||
Level.LoadMetadata(lvl);
|
||||
Level.LoadMetadata(lvl);
|
||||
if (!lvl.CanJoin(p)) return;
|
||||
|
||||
p.Loading = true;
|
||||
Entities.DespawnEntities(p);
|
||||
|
Loading…
x
Reference in New Issue
Block a user