Skip to content

Commit

Permalink
Release v4.1.6
Browse files Browse the repository at this point in the history
* Fixed #130
  • Loading branch information
fuyutsuki committed Aug 24, 2022
1 parent 603d81b commit d5274de
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 2 deletions.
6 changes: 6 additions & 0 deletions .github/changelogs/4.x/en_us.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

## 4.1.x

### 4.1.6

#### :bug: バグ修正

- Fixed server crash when editing floating texts (#130)

### 4.1.5

#### :bug: bug fixes
Expand Down
6 changes: 6 additions & 0 deletions .github/changelogs/4.x/ja_jp.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

## 4.1.x

### 4.1.6

#### :bug: バグ修正

- 浮き文字の編集時にサーバーがクラッシュする問題を修正しました (#130)

### 4.1.5

#### :bug: バグ修正
Expand Down
2 changes: 1 addition & 1 deletion plugin.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Texter
prefix: Texter
main: jp\mcbe\fuyutsuki\Texter\Main
version: 4.1.5
version: 4.1.6
api: 4.7.0
softdepend:
# aieuo/Mineflow
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
use dktapps\pmforms\element\Label;
use dktapps\pmforms\element\StepSlider;
use dktapps\pmforms\element\Toggle;
use Exception;
use jp\mcbe\fuyutsuki\Texter\data\FloatingTextData;
use jp\mcbe\fuyutsuki\Texter\i18n\TexterLang;
use jp\mcbe\fuyutsuki\Texter\Main;
Expand Down Expand Up @@ -95,7 +96,11 @@ function(Player $player): void {
}

private function handleSubmit(Player $player, CustomFormResponse $response): void {
$this->session->setName($response->getString(FormLabels::NAME));
try {
$name = $response->getString(FormLabels::NAME);
$this->session->setName($name);
}catch (Exception $_) {}

$texts = $this->session->texts();
$this->session->setTexts([]);

Expand Down

0 comments on commit d5274de

Please sign in to comment.