mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-07 18:32:55 +00:00
Item: Moved getMaxDurability() to Durable class only, and make it abstract
It's only now used in the Durable class, so it does not make sense to keep it in Item anymore. This is a leftover from the days where Durable did not exist.
This commit is contained in:
@ -38,7 +38,7 @@ abstract class TieredTool extends Tool{
|
||||
$this->tier = $tier;
|
||||
}
|
||||
|
||||
public function getMaxDurability(){
|
||||
public function getMaxDurability() : int{
|
||||
return self::getDurabilityFromTier($this->tier);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user