Prevent using /museum to bypass pervisit restrictions

This commit is contained in:
UnknownShadow200 2017-02-19 18:06:08 +11:00
parent 288d5c63fc
commit 4ad3754f4c

View File

@ -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);