mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-10-20 07:39:42 +00:00
Replace disallowed operators in src/item/
This commit is contained in:
@@ -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()]);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user