mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-22 16:51:42 +00:00
Changed potentially misleading parameter name in CompoundTag->getTagValue()
This commit is contained in:
parent
48fefae920
commit
747477dfcf
@ -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();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user