pmmp / PocketMine-MP

A server software for Minecraft: Bedrock Edition in PHP
https://pmmp.io
GNU Lesser General Public License v3.0
3.27k stars 1.55k forks source link

NBT TAGS ISSUE #507

Closed JunkDaCoder closed 7 years ago

JunkDaCoder commented 7 years ago

Issue description

1.Items with this code drops out of ur inv and cant be picked back up without them being thrown out, unless u relog. Steps to reproduce the issue Heres code from @Muqsit that reproduces it$item = Item::get(Item::DIAMOND_SWORD, 0, 10); $item->setCustomName(TextFormat::RESET.TextFormat::AQUA.'A Custom Named TNT'); $nbt = $item->getNamedTag(); $nbt->tag1 = new StringTag('tag1', 'A custom tag'); $nbt->tag2 = new StringTag('tag2', 'Another custom tag'); $item->setNamedTag($nbt); //Player::getInventory()->addItem($item); Then drop and pick it up OS and versions PHP: 7.0.14 Server OS: CentOS7 Game version: 1.0.5

Muqsit commented 7 years ago

Pmmp doesn't face the issue

JunkDaCoder commented 7 years ago

@Muqsit is it floating inventorys then? if so where are the transactions handled (the file)