mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-06 20:07:09 +00:00
BlockBreakInfo: fixed confusing error message
This commit is contained in:
parent
3050af0bc0
commit
1fed9f6cb5
@ -154,7 +154,7 @@ class BlockBreakInfo{
|
|||||||
|
|
||||||
$efficiency = $item->getMiningEfficiency(($this->toolType & $item->getBlockToolType()) !== 0);
|
$efficiency = $item->getMiningEfficiency(($this->toolType & $item->getBlockToolType()) !== 0);
|
||||||
if($efficiency <= 0){
|
if($efficiency <= 0){
|
||||||
throw new \InvalidArgumentException(get_class($item) . " has invalid mining efficiency: expected >= 0, got $efficiency");
|
throw new \InvalidArgumentException(get_class($item) . " must have a positive mining efficiency, but got $efficiency");
|
||||||
}
|
}
|
||||||
|
|
||||||
$base /= $efficiency;
|
$base /= $efficiency;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user