diff --git a/src/FNPC/npc/NPC.php b/src/FNPC/npc/NPC.php index 88d94a0..6953a98 100644 --- a/src/FNPC/npc/NPC.php +++ b/src/FNPC/npc/NPC.php @@ -88,11 +88,14 @@ public static function packetReceive($player,$packet) { if($packet->target==$npc->getEID()) { - if($npc->needPay() && !$npc->checkPay($player,true,$player)) + if($packet->action==2 || $packet->action=4) { - break; + if($npc->needPay() && !$npc->checkPay($player,true,$player)) + { + break; + } + $npc->onTouch($player); } - $npc->onTouch($player); } unset($npc); }