mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-10-18 20:14:31 +00:00
Replace disallowed operators in src/item/
This commit is contained in:
@@ -52,7 +52,7 @@ class Bow extends Tool implements Releasable{
|
||||
default => null
|
||||
};
|
||||
|
||||
if($player->hasFiniteResources() and $inventory === null){
|
||||
if($player->hasFiniteResources() && $inventory === null){
|
||||
return ItemUseResult::FAIL();
|
||||
}
|
||||
|
||||
@@ -85,7 +85,7 @@ class Bow extends Tool implements Releasable{
|
||||
}
|
||||
$ev = new EntityShootBowEvent($player, $this, $entity, $baseForce * 3);
|
||||
|
||||
if($baseForce < 0.1 or $diff < 5 or $player->isSpectator()){
|
||||
if($baseForce < 0.1 || $diff < 5 || $player->isSpectator()){
|
||||
$ev->cancel();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user