mirror of
https://codeberg.org/moonleay/Gimble.git
synced 2024-11-21 22:32:50 +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,13 +70,19 @@ 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()
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
fun isAllowed(): Boolean {
|
fun isAllowed(): Boolean {
|
||||||
return POLICY == GimbalPolicyType.ALLOWED
|
return POLICY == GimbalPolicyType.ALLOWED
|
||||||
|
|
Loading…
Reference in a new issue