mirror of
https://codeberg.org/moonleay/Gimble.git
synced 2024-11-25 00:02:10 +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()
|
DISABLED_MODIFIERS_STORAGE.clear()
|
||||||
onUpdated(shouldUpdateServer)
|
onUpdated(shouldUpdateServer)
|
||||||
|
|
||||||
if (!shouldUpdateServer)
|
if (!shouldUpdateServer) {
|
||||||
|
val player = MinecraftClient.getInstance().player
|
||||||
|
if (player == null) {
|
||||||
|
println("Player is null!")
|
||||||
|
return
|
||||||
|
}
|
||||||
ServerEditorManager.updateEditorState(
|
ServerEditorManager.updateEditorState(
|
||||||
MinecraftClient.getInstance().player!!.uuid,
|
MinecraftClient.getInstance().player!!.uuid,
|
||||||
this.getClientState()
|
this.getClientState()
|
||||||
)
|
)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue