From 747477dfcf64ee2e48454d7d8aa19316f8a0087f Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Fri, 27 Oct 2017 11:04:03 +0100 Subject: [PATCH] Changed potentially misleading parameter name in CompoundTag->getTagValue() --- src/pocketmine/nbt/tag/CompoundTag.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/pocketmine/nbt/tag/CompoundTag.php b/src/pocketmine/nbt/tag/CompoundTag.php index 62616118c..3fdd4d5f6 100644 --- a/src/pocketmine/nbt/tag/CompoundTag.php +++ b/src/pocketmine/nbt/tag/CompoundTag.php @@ -154,13 +154,13 @@ class CompoundTag extends NamedTag implements \ArrayAccess{ * tag is not of type $expectedType, an exception will be thrown. * * @param string $name - * @param string $expectedType + * @param string $expectedClass * @param mixed $default * * @return mixed */ - public function getTagValue(string $name, string $expectedType, $default = null){ - $tag = $this->getTag($name, $expectedType); + public function getTagValue(string $name, string $expectedClass, $default = null){ + $tag = $this->getTag($name, $expectedClass); if($tag !== null){ return $tag->getValue(); }