Skip to content

Commit f9cd7cd

Browse files
committed
firstSessionSpawnPoint improved.
Signed-off-by: Pavel Erokhin (MairwunNx) <MairwunNx@gmail.com>
1 parent c23ec24 commit f9cd7cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/kotlin/com/mairwunnx/projectessentials/spawn/ModuleObject.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,8 @@ class ModuleObject : IModule {
7979
}
8080

8181
private fun firstSessionSpawnPoint(event: FMLServerStartingEvent) {
82-
val world = event.server.getWorld(DimensionType.OVERWORLD)
8382
if (firstLaunch) {
83+
val world = event.server.getWorld(DimensionType.OVERWORLD)
8484
spawnConfiguration.take().xPos = world.spawnPoint.x
8585
spawnConfiguration.take().yPos = world.spawnPoint.y
8686
spawnConfiguration.take().zPos = world.spawnPoint.z

0 commit comments

Comments
 (0)