Skip to content

Commit

Permalink
NBTStream: fixed asymmetrical read/write behaviour with non-compound …
Browse files Browse the repository at this point in the history
…roots

nobody noticed this because it has never appeared before, but here we are ...
  • Loading branch information
dktapps committed Dec 1, 2019
1 parent 78784b9 commit b577726
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/NBTStream.php
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ public function write($data){
$this->offset = 0;
$this->buffer = "";

if($data instanceof CompoundTag){
if($data instanceof NamedTag){
$this->writeTag($data);

return $this->buffer;
Expand Down

0 comments on commit b577726

Please sign in to comment.