mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-21 12:09:43 +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
|
|
@ -137,14 +137,14 @@ class Level{
|
|||
case "Sign":
|
||||
$text = $tile->getText();
|
||||
$nbt->setData(new Compound("", array(
|
||||
new String("Text1", $text[0]),
|
||||
new String("Text2", $text[1]),
|
||||
new String("Text3", $text[2]),
|
||||
new String("Text4", $text[3]),
|
||||
new String("id", "Sign"),
|
||||
new Int("x", (int) $tile->x),
|
||||
new Int("y", (int) $tile->y),
|
||||
new Int("z", (int) $tile->z)
|
||||
new StringTag("Text1", $text[0]),
|
||||
new StringTag("Text2", $text[1]),
|
||||
new StringTag("Text3", $text[2]),
|
||||
new StringTag("Text4", $text[3]),
|
||||
new StringTag("id", "Sign"),
|
||||
new IntTag("x", (int) $tile->x),
|
||||
new IntTag("y", (int) $tile->y),
|
||||
new IntTag("z", (int) $tile->z)
|
||||
)));
|
||||
$tileEntities .= $nbt->write();
|
||||
break;
|
||||
|
|
@ -153,10 +153,10 @@ class Level{
|
|||
break;
|
||||
case "Chest":
|
||||
$nbt->setData(new Compound("", array(
|
||||
new String("id", "Chest"),
|
||||
new Int("x", (int) $tile->x),
|
||||
new Int("y", (int) $tile->y),
|
||||
new Int("z", (int) $tile->z)
|
||||
new StringTag("id", "Chest"),
|
||||
new IntTag("x", (int) $tile->x),
|
||||
new IntTag("y", (int) $tile->y),
|
||||
new IntTag("z", (int) $tile->z)
|
||||
)));
|
||||
$tileEntities .= $nbt->write();
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue