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

@@ -66,6 +66,6 @@ class ProtectionEnchantment extends Enchantment{
* Returns whether this enchantment type offers protection from the specified damage source's cause.
*/
public function isApplicable(EntityDamageEvent $event) : bool{
return $this->applicableDamageTypes === null or isset($this->applicableDamageTypes[$event->getCause()]);
return $this->applicableDamageTypes === null || isset($this->applicableDamageTypes[$event->getCause()]);
}
}