Plugins (6): DEVirion v1.2.5-ALPHA13, DevTools v1.15.0+dev, FormImagesFix v0.0.1, MagicWE2 v10.1.0, WFCore v0.0.0, WarpUI v4.0.1
$pos = new Vector3($player->x,$player->y,$player->z);
$chest = Tile::createTile(Tile::CHEST,$player->getLevelNonNull(),TileChest::createNBT($pos, null, null, $player));
$inventory= new ChestInventory($chest);
$player->addWindow($inventory);
$inventory->onOpen($player);
$pk = new ContainerOpenPacket();
$pk->windowId = $player->getWindowId($inventory);
$pk->type = WindowTypes::MINECART_CHEST;
$pk->x = $pk->y = $pk->z = 0;
$pk->entityUniqueId = $player->getId();
$player->dataPacket($pk);
What's wrong with this string of code.
This happens because the client thinks there isn't any text on the sign and opens the sign editing UI. This happens because the item NBT isn't added properly.
Same with chests and items inside
no
Most helpful comment
This happens because the client thinks there isn't any text on the sign and opens the sign editing UI. This happens because the item NBT isn't added properly.