Merge changes from master

This commit is contained in:
Dylan K. Taylor
2017-04-21 22:48:18 +01:00
23 changed files with 79 additions and 43 deletions

View File

@ -945,7 +945,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()){
@ -971,7 +971,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);
}