Skip to content
Permalink
Browse files

Stop Slapper motions, fixes #176 (#186)

  • Loading branch information...
SleepSpace9 authored and jojoe77777 committed Jan 27, 2019
1 parent 6919f2e commit 6cff0f580931b4539d1863410523a42be784bb3f
Showing with 12 additions and 0 deletions.
  1. +12 −0 src/slapper/Main.php
@@ -663,4 +663,16 @@ public function onEntitySpawn(EntitySpawnEvent $ev): void {
}
}
}
/**
* @param EntityMotionEvent $event
*
* @return void
*/
public function onEntityMotion(EntityMotionEvent $event): void {
$entity = $event->getEntity();
if ($entity instanceof SlapperEntity || $entity instanceof SlapperHuman) {
$event->setCancelled(true);
}
}
}

0 comments on commit 6cff0f5

Please sign in to comment.
You can’t perform that action at this time.