Skip to content

Commit

Permalink
support latest protocol changes (#137)
Browse files Browse the repository at this point in the history
  • Loading branch information
xxFLORII authored Feb 16, 2023
1 parent d48aa68 commit 4eaf00a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion plugin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Texter
prefix: Texter
main: jp\mcbe\fuyutsuki\Texter\Main
version: 4.1.8
api: 4.10.0
api: 4.14.0
softdepend:
# aieuo/Mineflow
- Mineflow # >= 2.0
Expand Down
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\AbilitiesData;
use pocketmine\network\mcpe\protocol\types\command\CommandPermissions;
use pocketmine\network\mcpe\protocol\types\DeviceOS;
use pocketmine\network\mcpe\protocol\types\entity\EntityMetadataFlags;
Expand Down Expand Up @@ -143,7 +144,7 @@ public function asPackets(Player $player, SendType $type): array {
EntityMetadataProperties::SCALE => new FloatMetadataProperty(0.0),
],
new PropertySyncData([], []),
UpdateAbilitiesPacket::create(CommandPermissions::NORMAL, PlayerPermissions::VISITOR, $this->actorRuntimeId, []),
UpdateAbilitiesPacket::create(new AbilitiesData(CommandPermissions::NORMAL, PlayerPermissions::VISITOR, $this->actorRuntimeId, [])),
[],
"",
DeviceOS::UNKNOWN
Expand Down

0 comments on commit 4eaf00a

Please sign in to comment.