mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 01:46:04 +00:00
Visibility keyword before final or abstract keyword. (#814)
This commit is contained in:
@ -916,7 +916,7 @@ class Item implements ItemIds, \JsonSerializable{
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public final function equals(Item $item, bool $checkDamage = true, bool $checkCompound = true) : bool{
|
||||
final public function equals(Item $item, bool $checkDamage = true, bool $checkCompound = true) : bool{
|
||||
if($this->id === $item->getId() and ($checkDamage === false or $this->getDamage() === $item->getDamage())){
|
||||
if($checkCompound){
|
||||
if($item->getCompoundTag() === $this->getCompoundTag()){
|
||||
@ -942,7 +942,7 @@ class Item implements ItemIds, \JsonSerializable{
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public final function deepEquals(Item $item, bool $checkDamage = true, bool $checkCompound = true) : bool{
|
||||
final public function deepEquals(Item $item, bool $checkDamage = true, bool $checkCompound = true) : bool{
|
||||
return $this->equals($item, $checkDamage, $checkCompound);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user