Skip to content

Commit

Permalink
fix incorrect types
Browse files Browse the repository at this point in the history
  • Loading branch information
fuyutsuki committed Feb 9, 2024
1 parent 24f16b9 commit e1cb901
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src/jp/mcbe/fuyutsuki/Texter/EventListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,12 @@
use pocketmine\network\mcpe\protocol\AvailableCommandsPacket;
use pocketmine\network\mcpe\protocol\ProtocolInfo;
use pocketmine\player\Player;
use pocketmine\plugin\Plugin;
use pocketmine\plugin\PluginBase;

class EventListener implements Listener {

public function __construct(
private Plugin $plugin
private PluginBase $plugin
) {
}

Expand Down
11 changes: 6 additions & 5 deletions src/jp/mcbe/fuyutsuki/Texter/data/OldFloatingTextData.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,19 +28,20 @@
namespace jp\mcbe\fuyutsuki\Texter\data;

use jp\mcbe\fuyutsuki\Texter\text\FloatingTextCluster;
use pocketmine\plugin\Plugin;
use pocketmine\plugin\PluginBase;
use pocketmine\utils\Config;

class OldFloatingTextData extends Config {

public const FILE_FT = "ft.json";
public const FILE_UFT = "uft.json";

private Plugin $plugin;

public function __construct(Plugin $plugin, string $path, string $file) {
public function __construct(
private PluginBase $plugin,
string $path,
string $file
) {
parent::__construct($path.$file, Config::JSON);
$this->plugin = $plugin;
}

public function convert() {
Expand Down

0 comments on commit e1cb901

Please sign in to comment.