Skip to content

Commit

Permalink
Return instead of declaring value
Browse files Browse the repository at this point in the history
  • Loading branch information
Unreal852 committed Aug 6, 2024
1 parent 7c2160a commit 7b97ce1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/main/java/fr/unreal852/quantum/world/QuantumWorldData.kt
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,14 @@ class QuantumWorldData(worldId: Identifier, dimensionId: Identifier, runtimeWorl
val difficulty = Difficulty.byId(nbt.getInt(DIFFICULTY_KEY))
val shouldTick = nbt.getBoolean(SHOULD_TICK_KEY)

val quantumWorldData = QuantumWorldData(
return QuantumWorldData(
worldId,
dimensionId,
RuntimeWorldConfig()
.setSeed(seed)
.setDifficulty(difficulty)
.setShouldTickTime(shouldTick)
)
return quantumWorldData
}
}
}

0 comments on commit 7b97ce1

Please sign in to comment.