Merge branch 'next-minor' into next-major

This commit is contained in:
Dylan K. Taylor
2022-11-30 20:05:30 +00:00
10 changed files with 156 additions and 22 deletions

View File

@@ -115,7 +115,7 @@ abstract class Durable extends Item{
* Returns whether the item is broken.
*/
public function isBroken() : bool{
return $this->damage >= $this->getMaxDurability();
return $this->damage >= $this->getMaxDurability() || $this->isNull();
}
protected function deserializeCompoundTag(CompoundTag $tag) : void{