mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-12 16:59:44 +00:00
Shears: fixed always-false hardness check
thanks PHPStan
This commit is contained in:
parent
7d5c3c9b46
commit
bb05cfb36c
@ -48,7 +48,7 @@ class Shears extends Tool{
|
||||
}
|
||||
|
||||
public function onDestroyBlock(Block $block) : bool{
|
||||
if($block->getHardness() === 0 or $block->isCompatibleWithTool($this)){
|
||||
if($block->getHardness() === 0.0 or $block->isCompatibleWithTool($this)){
|
||||
return $this->applyDamage(1);
|
||||
}
|
||||
return false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user