mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-21 10:26:38 +00:00
typos
This commit is contained in:
parent
18443c0cd7
commit
5c00b415a5
@ -92,10 +92,6 @@ class NBT implements \ArrayAccess{
|
||||
|
||||
public function readTag(){
|
||||
switch($this->getByte()){
|
||||
case NBT\TAG_Byte:
|
||||
$tag = new Byte($this->getString());
|
||||
$tag->read($this);
|
||||
break;
|
||||
case NBT\TAG_Byte:
|
||||
$tag = new Byte($this->getString());
|
||||
$tag->read($this);
|
||||
|
@ -26,6 +26,13 @@ use PocketMine\NBT;
|
||||
|
||||
class Compound extends NamedNBTTag implements \ArrayAccess, \Iterator{
|
||||
|
||||
public function __construct($name = "", $value = array()){
|
||||
$this->name = $name;
|
||||
if($value !== false){
|
||||
$this->value = $value;
|
||||
}
|
||||
}
|
||||
|
||||
public function getType(){
|
||||
return NBT\TAG_Compound;
|
||||
}
|
||||
|
@ -29,6 +29,13 @@ class Enum extends NamedNBTTag implements \ArrayAccess, \Iterator{
|
||||
|
||||
private $tagType;
|
||||
|
||||
public function __construct($name = "", $value = array()){
|
||||
$this->name = $name;
|
||||
if($value !== false){
|
||||
$this->value = $value;
|
||||
}
|
||||
}
|
||||
|
||||
public function getType(){
|
||||
return NBT\TAG_Enum;
|
||||
}
|
||||
@ -110,11 +117,6 @@ class Enum extends NamedNBTTag implements \ArrayAccess, \Iterator{
|
||||
$size = $nbt->getInt();
|
||||
for($i = 0; $i < $size and !$nbt->feof(); ++$i){
|
||||
switch($this->tagType){
|
||||
case NBT\TAG_Byte:
|
||||
$tag = new Byte(false);
|
||||
$tag->read($nbt);
|
||||
$this->value[] = $tag;
|
||||
break;
|
||||
case NBT\TAG_Byte:
|
||||
$tag = new Byte(false);
|
||||
$tag->read($nbt);
|
||||
|
@ -141,6 +141,6 @@ class Async extends Thread{
|
||||
$this->join();
|
||||
}
|
||||
|
||||
return $this->result;
|
||||
return (string) $this->result;
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user