mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-04 17:06:16 +00:00
BlockBreakInfo: use strict comparison
weak compare isn't needed here since this can be float/float
This commit is contained in:
@ -95,7 +95,7 @@ class BlockBreakInfo{
|
|||||||
* Returns whether this block can be instantly broken.
|
* Returns whether this block can be instantly broken.
|
||||||
*/
|
*/
|
||||||
public function breaksInstantly() : bool{
|
public function breaksInstantly() : bool{
|
||||||
return $this->hardness == 0.0;
|
return $this->hardness === 0.0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user