mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 17:59:48 +00:00
Removed some remaining references, removed duplicated code on Anvil
This commit is contained in:
@ -42,7 +42,6 @@ class IntArray extends NamedTag{
|
||||
|
||||
public function write(NBT $nbt){
|
||||
$nbt->putInt(count($this->value));
|
||||
$data = pack($nbt->endianness === NBT::LITTLE_ENDIAN ? "V*" : "N*", ...$this->value);
|
||||
$nbt->put($data);
|
||||
$nbt->put(pack($nbt->endianness === NBT::LITTLE_ENDIAN ? "V*" : "N*", ...$this->value));
|
||||
}
|
||||
}
|
@ -26,14 +26,7 @@ use pocketmine\nbt\NBT;
|
||||
#include <rules/NBT.h>
|
||||
|
||||
class String extends NamedTag{
|
||||
|
||||
public function __construct($name = "", $value = null){
|
||||
$this->name = $name;
|
||||
if($value !== null){
|
||||
$this->value = $value;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public function getType(){
|
||||
return NBT::TAG_String;
|
||||
}
|
||||
|
Reference in New Issue
Block a user