mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 17:59:48 +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:
@ -39,7 +39,7 @@ class Bow extends Tool{
|
||||
return 200;
|
||||
}
|
||||
|
||||
public function getMaxDurability(){
|
||||
public function getMaxDurability() : int{
|
||||
return 385;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user