mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-11 12:27:51 +00:00
BlockBreakInfo: use strict comparison
weak compare isn't needed here since this can be float/float
This commit is contained in:
parent
8b23231537
commit
5c905d9a95
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user