aieuo / Mineflow

Easily create and execute the original flow like a plugin
University of Illinois/NCSA Open Source License
48 stars 15 forks source link

Event trigger (EntityAttackEvent) issues #62

Closed Bacotch closed 3 years ago

Bacotch commented 3 years ago

I make some recipe with EntityAttackEvent trigger. But these recipe caused this (picture). What should I do ? image

aieuo commented 3 years ago

そのレシピの中身(実行するボタンなどがあるフォームなどで)を見せてください

Bacotch commented 3 years ago

すみません、これを確認しようとした矢先に何故かmf自体がエラーを吐いてpmmpが起動しなくなってしまいました。 別件かもしれませんが根本的な問題なのでどうすればよいのかご教授してくださると幸いです。 [20:47:28] [Server thread/CRITICAL]: TypeError: "Argument 1 passed to aieuo\mineflow\variable\Variable::fromArray() must be of the type array, null given, called in phar://C:/Users/minat/Desktop/PMMPserver/plugins/Mineflow.phar/src/aieuo/mineflow/variable/Variable.php on line 50" (EXCEPTION) in "plugins/Mineflow.phar/src/aieuo/mineflow/variable/Variable" at line 43 [20:47:28] [Server thread/CRITICAL]: #0 plugins/Mineflow.phar/src/aieuo/mineflow/variable/Variable(50): aieuo\mineflow\variable\Variable::fromArray(NULL ) [20:47:28] [Server thread/CRITICAL]: #1 plugins/Mineflow.phar/src/aieuo/mineflow/variable/VariableHelper(27): aieuo\mineflow\variable\Variable::fromArray(array[2]) [20:47:28] [Server thread/CRITICAL]: #2 plugins/Mineflow.phar/src/aieuo/mineflow/Main(86): aieuo\mineflow\variable\VariableHelper->__construct(object pocketmine\utils\Config) [20:47:28] [Server thread/CRITICAL]: #3 pmsrc/src/pocketmine/plugin/PluginBase(116): aieuo\mineflow\Main->onEnable() [20:47:28] [Server thread/CRITICAL]: #4 pmsrc/src/pocketmine/plugin/PluginManager(552): pocketmine\plugin\PluginBase->setEnabled(boolean 1)

aieuo commented 3 years ago

あああ,すみません こちらのDev#183を使用してみてください

Bacotch commented 3 years ago

きどうしなくなるバグは治りました。ありがとうございます。 問題が起きるレシピはこんな感じものx3です(トリガーとifの条件が同じ) image image

aieuo commented 3 years ago

ありがとうございます

こちらで同じトリガーで試したところ問題なく実行できてしました... ここでもdiscordなどでもいいのでplugin_data/Mineflow/recipes内にあるエラーの出るレシピの名前のファイルも送っていただけますか

Bacotch commented 3 years ago

実行はできるのですがエラーメッセージが出る感じです ファイルは管理者に連絡してみます

aieuo commented 3 years ago

ありがとうございます

そのエラーメッセージはプレイヤー以外に攻撃された時に出る感じですか? もしそうなら,もし~なら...するアクションを使用して{target}がプレイヤーか確認してから次の処理に行くようにしてみてください

Bacotch commented 3 years ago

どうやらそうだったみたいです。