mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 17:59:48 +00:00
Merge commit '42e14f749'
# Conflicts: # resources/vanilla # src/pocketmine/Player.php # src/pocketmine/item/Bow.php # src/world/World.php
This commit is contained in:
@ -80,7 +80,7 @@ class Bow extends Tool{
|
||||
}
|
||||
$ev = new EntityShootBowEvent($player, $this, $entity, $baseForce * 3);
|
||||
|
||||
if($baseForce < 0.1 or $diff < 5){
|
||||
if($baseForce < 0.1 or $diff < 5 or $player->isSpectator()){
|
||||
$ev->setCancelled();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user