fixed nbt(which somehow worked before), enderman ai updates

This commit is contained in:
GameHerobrine 2023-02-21 20:08:50 +03:00
parent 9b5a3959c4
commit 12c9e664f0
6 changed files with 41 additions and 20 deletions

View file

@ -121,7 +121,7 @@ class NBT_new{
$tag->read($this);
break;
case NBT::TAG_Int:
$tag = new Int($this->getString());
$tag = new IntTag($this->getString());
$tag->read($this);
break;
case NBT::TAG_Long:
@ -129,7 +129,7 @@ class NBT_new{
$tag->read($this);
break;
case NBT::TAG_Float:
$tag = new Float($this->getString());
$tag = new FloatTag($this->getString());
$tag->read($this);
break;
case NBT::TAG_Double:
@ -141,7 +141,7 @@ class NBT_new{
$tag->read($this);
break;
case NBT::TAG_String:
$tag = new String($this->getString());
$tag = new StringTag($this->getString());
$tag->read($this);
break;
case NBT::TAG_Enum:

View file

@ -110,7 +110,7 @@ class Enum extends NamedTag implements \ArrayAccess, \Countable{
$this->{$i} = $tag;
break;
case NBT_new::TAG_Int:
$tag = new Int(false);
$tag = new IntTag(false);
$tag->read($NBT_new);
$this->{$i} = $tag;
break;
@ -120,7 +120,7 @@ class Enum extends NamedTag implements \ArrayAccess, \Countable{
$this->{$i} = $tag;
break;
case NBT_new::TAG_Float:
$tag = new Float(false);
$tag = new FloatTag(false);
$tag->read($NBT_new);
$this->{$i} = $tag;
break;
@ -135,7 +135,7 @@ class Enum extends NamedTag implements \ArrayAccess, \Countable{
$this->{$i} = $tag;
break;
case NBT_new::TAG_String:
$tag = new String(false);
$tag = new StringTag(false);
$tag->read($NBT_new);
$this->{$i} = $tag;
break;