feat: changed Player feedback on mode change

This commit is contained in:
moonleay 2024-04-24 02:51:51 +02:00
parent e3b1be7028
commit 14f2021748
Signed by: moonleay
GPG key ID: 82667543CCD715FB

View file

@ -22,6 +22,6 @@ object GimbleServer {
private fun handleStateUpdate(player: ServerPlayerEntity, buf: PacketByteBuf){
val state = Cbor.decodeFromByteArray<EditorState>(buf.readByteArray())
ServerEditorManager.updateEditorState(player.uuid, state)
player.sendMessage(Text.of("Updated State (Server) ${state.editorMode} with ${state.editorModifier}"))
player.sendMessage(Text.of("Mode: ${state.editorMode} with ${state.editorModifier}"))
}
}