mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-23 04:59:46 +00:00
fixed nbt(which somehow worked before), enderman ai updates
This commit is contained in:
parent
9b5a3959c4
commit
12c9e664f0
6 changed files with 41 additions and 20 deletions
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue