BlockBreakInfo: use strict comparison

weak compare isn't needed here since this can be float/float
This commit is contained in:
Dylan K. Taylor 2025-01-06 22:38:32 +00:00
parent 8b23231537
commit 5c905d9a95
No known key found for this signature in database
GPG Key ID: 8927471A91CAFD3D

View File

@ -95,7 +95,7 @@ class BlockBreakInfo{
* Returns whether this block can be instantly broken.
*/
public function breaksInstantly() : bool{
return $this->hardness == 0.0;
return $this->hardness === 0.0;
}
/**