Replace disallowed operators in src/item/

This commit is contained in:
Dylan K. Taylor
2022-01-20 19:16:50 +00:00
parent 373880e582
commit 22fb02c4e6
11 changed files with 25 additions and 25 deletions

View File

@@ -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();
}