Skip to content

Commit

Permalink
Merge branch 'dev/4.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
fuyutsuki committed Apr 8, 2021
2 parents 2410872 + 0e8ad6c commit 37be14e
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 8 deletions.
11 changes: 11 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,17 @@

## 4.0.x

### 4.0.4

#### :arrow_heading_up: Follow pmmp updates

- Confirmed the operation of [pmmp/PocketMine-MP](https://github.com/pmmp/PocketMine-MP) with the latest release `3.19.0` of Minecraft: Bedrock Edition 1.16.220 release
- Corresponds for changing item stacks (#111)

#### :warning: BCBreak

- Texter now requires PocketMine-MP >= 3.19.0

### 4.0.3

#### :bug: Bug fix
Expand Down
11 changes: 11 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,17 @@

## 4.0.x

### 4.0.4

#### :arrow_heading_up: PMMPの変更に追従

- Minecraft: Bedrock Edition 1.16.220 リリースに伴う [pmmp/PocketMine-MP](https://github.com/pmmp/PocketMine-MP) の最新リリース `3.19.0` での動作確認を行いました
- アイテムスタックの変更に対応 (#111)

#### :warning: 後方互換性を損なう変更

- TexterはPocketMine-MP 3.19.0以上が必要になりました

### 4.0.3

#### :bug: バグ修正
Expand Down
11 changes: 4 additions & 7 deletions plugin.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
name: Texter
prefix: Texter
main: jp\mcbe\fuyutsuki\Texter\Main
version: 4.0.3
api: 3.15.0 # pmmp/PocketMine-MP
version: 4.0.4
api: 3.19.0 # pmmp/PocketMine-MP
mcpe-protocol:
- 408 # 1.16.20
- 419 # 1.16.100
- 422 # 1.16.200
- 428 # 1.16.210
- 431 # 1.16.220
softdepend:
# aieuo/Mineflow
- Mineflow # >= 2.0
Expand Down Expand Up @@ -45,4 +42,4 @@ permissions:
children:
texter.command.txt:
default: op
description: permission that allows player to use /txt
description: permission that allows player to use /txt
3 changes: 2 additions & 1 deletion src/jp/mcbe/fuyutsuki/Texter/text/FloatingText.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
use pocketmine\network\mcpe\protocol\PlayerListPacket;
use pocketmine\network\mcpe\protocol\RemoveActorPacket;
use pocketmine\network\mcpe\protocol\SetActorDataPacket;
use pocketmine\network\mcpe\protocol\types\inventory\ItemStackWrapper;
use pocketmine\network\mcpe\protocol\types\PlayerListEntry;
use pocketmine\network\mcpe\protocol\types\SkinAdapterSingleton;
use pocketmine\Player;
Expand Down Expand Up @@ -128,7 +129,7 @@ public function asPackets(Player $player, SendType $type): array {
$pk->entityRuntimeId = $this->entityRuntimeId;
$pk->entityUniqueId = $this->entityRuntimeId;
$pk->position = $this->position;
$pk->item = Item::get(ItemIds::AIR);
$pk->item = ItemStackWrapper::legacy(Item::get(ItemIds::AIR));
$pk->metadata = [
Entity::DATA_FLAGS => [
Entity::DATA_TYPE_LONG, 1 << Entity::DATA_FLAG_IMMOBILE
Expand Down

0 comments on commit 37be14e

Please sign in to comment.