Skip to content

Commit 9cdb529

Browse files
committed
...
1 parent af54a21 commit 9cdb529

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

src/MiNET/MiNET/Player.cs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1880,7 +1880,10 @@ public virtual void SpawnLevel(Level toLevel, PlayerLocation spawnPoint, bool us
18801880
bool oldNoAi = NoAi;
18811881
SetNoAi(true);
18821882

1883-
SendChangeDimension(Dimension.Nether);
1883+
if (useLoadingScreen)
1884+
{
1885+
SendChangeDimension(Dimension.Nether);
1886+
}
18841887

18851888
if (toLevel == null && levelFunc != null)
18861889
{
@@ -1899,7 +1902,10 @@ public virtual void SpawnLevel(Level toLevel, PlayerLocation spawnPoint, bool us
18991902

19001903
Action transferFunc = delegate
19011904
{
1902-
SendChangeDimension(Dimension.Overworld);
1905+
if (useLoadingScreen)
1906+
{
1907+
SendChangeDimension(Dimension.Overworld);
1908+
}
19031909

19041910
Level.RemovePlayer(this, true);
19051911

0 commit comments

Comments
 (0)