Skip to content

Commit

Permalink
Fix #148 (#149)
Browse files Browse the repository at this point in the history
* fix #148

* removed unused import

* this should be better

---------

Co-authored-by: Florian
  • Loading branch information
xxFLORII authored Aug 7, 2023
1 parent fc6aa27 commit 4003017
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
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.2.1
version: 4.2.2
api: 5.3.0

author: yuko fuyutsuki
Expand Down
4 changes: 2 additions & 2 deletions src/jp/mcbe/fuyutsuki/Texter/text/FloatingText.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@
use pocketmine\network\mcpe\protocol\types\entity\LongMetadataProperty;
use pocketmine\network\mcpe\protocol\types\entity\PropertySyncData;
use pocketmine\network\mcpe\protocol\types\entity\StringMetadataProperty;
use pocketmine\network\mcpe\protocol\types\GameMode;
use pocketmine\network\mcpe\protocol\types\inventory\ItemStack;
use pocketmine\network\mcpe\protocol\types\inventory\ItemStackWrapper;
use pocketmine\network\mcpe\protocol\types\PlayerListEntry;
use pocketmine\network\mcpe\protocol\types\PlayerPermissions;
use pocketmine\network\mcpe\protocol\UpdateAbilitiesPacket;
use pocketmine\player\GameMode;
use pocketmine\player\Player;
use pocketmine\world\World;
use Ramsey\Uuid\Uuid;
Expand Down Expand Up @@ -119,7 +119,7 @@ public function asPackets(SendType $type): array {
0.0,
0.0,
ItemStackWrapper::legacy(ItemStack::null()),
GameMode::ADVENTURE()->id(),
GameMode::ADVENTURE,
[
EntityMetadataProperties::FLAGS => LongMetadataProperty::buildFromFlags([
EntityMetadataFlags::IMMOBILE => true,
Expand Down

0 comments on commit 4003017

Please sign in to comment.