mirror of
https://codeberg.org/moonleay/Gimble.git
synced 2024-11-21 14:22:55 +00:00
fix: fixed not being able to join worlds in multiplayer and singleplayer
Signed-off-by: moonleay <contact@moonleay.net>
This commit is contained in:
parent
8b7e576d3d
commit
8bcbcc021b
1 changed files with 7 additions and 1 deletions
|
@ -70,11 +70,17 @@ object ClientEditor {
|
|||
DISABLED_MODIFIERS_STORAGE.clear()
|
||||
onUpdated(shouldUpdateServer)
|
||||
|
||||
if (!shouldUpdateServer)
|
||||
if (!shouldUpdateServer) {
|
||||
val player = MinecraftClient.getInstance().player
|
||||
if (player == null) {
|
||||
println("Player is null!")
|
||||
return
|
||||
}
|
||||
ServerEditorManager.updateEditorState(
|
||||
MinecraftClient.getInstance().player!!.uuid,
|
||||
this.getClientState()
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue