From e3c833bd19eae228ae362f57ace6a7e95fcf0cea Mon Sep 17 00:00:00 2001 From: mote166 Date: Mon, 8 Jun 2020 12:23:24 +0300 Subject: [PATCH] fixes #20 this fix was provided by @benda95280 --- src/SlapperRotation/Main.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/SlapperRotation/Main.php b/src/SlapperRotation/Main.php index aeea9f9..1f0c120 100644 --- a/src/SlapperRotation/Main.php +++ b/src/SlapperRotation/Main.php @@ -29,6 +29,9 @@ public function onPlayerMove(PlayerMoveEvent $ev) { if($e instanceof Player) { continue; } + if(!($e instanceof SlapperEntity)){ + continue; + } if(substr($e->getSaveId(), 0, 7) !== "Slapper") { continue; }