{"action":"created","issue":{"url":"https://api.github.com/repos/iTXTech/Genisys/issues/1324","repository_url":"https://api.github.com/repos/iTXTech/Genisys","labels_url":"https://api.github.com/repos/iTXTech/Genisys/issues/1324/labels{/name}","comments_url":"https://api.github.com/repos/iTXTech/Genisys/issues/1324/comments","events_url":"https://api.github.com/repos/iTXTech/Genisys/issues/1324/events","html_url":"https://github.com/iTXTech/Genisys/issues/1324","id":163407923,"number":1324,"title":"Enchanted Item's setCustomName() doesn't have \"display\" CompundTag after swap slot","user":{"login":"intagaming","id":16471365,"avatar_url":"https://avatars.githubusercontent.com/u/16471365?v=3","gravatar_id":"","url":"https://api.github.com/users/intagaming","html_url":"https://github.com/intagaming","followers_url":"https://api.github.com/users/intagaming/followers","following_url":"https://api.github.com/users/intagaming/following{/other_user}","gists_url":"https://api.github.com/users/intagaming/gists{/gist_id}","starred_url":"https://api.github.com/users/intagaming/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/intagaming/subscriptions","organizations_url":"https://api.github.com/users/intagaming/orgs","repos_url":"https://api.github.com/users/intagaming/repos","events_url":"https://api.github.com/users/intagaming/events{/privacy}","received_events_url":"https://api.github.com/users/intagaming/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2016-07-01T14:31:28Z","updated_at":"2016-07-06T09:38:25Z","closed_at":"2016-07-06T09:38:25Z","body":"<!--- WARNING\r\nANY ISSUE ON OUTDATED GENISYS WILL BE CLOSED. CONTINUING SPAMMNG WILL CAUSE A BAN. CHECK YOUR VERSION BEFORE CONTINUING.\r\nANY ISSUE ASKING UPDATE TO ANY NEW VERSION OF MCPE WILL BE CLOSED.\r\nCHECK THE OPEN ISSUES BEFORE YOU SUBMIT A NEW ONE. \r\n-->\r\n\r\n#### Issue description\r\n<!--- Write a short description about the issue -->\r\nEnchanted Item's setCustomName() doesn't have \"display\" CompundTag\r\n\r\n#### Steps to reproduce the issue\r\n<!--- help us find the problem by adding steps to reproduce the issue -->\r\n1. With the Bow have Power IV enchanted, setCustomName(\"Bowasd\"), doesn't change anything at the name, swap slot and [\"display\"] CompoundTag will disappear, see the log for the var_dump\r\n2. With the Bow have Power IV enchanted, go to the Anvil, rename to \"Bowas\", have \"display\" CompoundTag, see the log\r\n\r\n#### OS and versions\r\n<!--- Try Docker for library/extension issues\r\nuse the 'version' command in Genisys\r\nValid version must contain build number or git hash\r\nVersion \"latest\" is INVALID! Please write properly\r\nIf version is invalid, the issue will be CLOSED -->\r\n* Genisys: dev 555\r\n* PHP: 7.0.4\r\n* OS: Android 5.0 & Windows 10 (both have same issue)\r\n\r\n#### Crashdump, backtrace or other files\r\nWhen done setCustomName(\"Bowasd\") and give to Player:\r\n```\r\nobject(pocketmine\\item\\Bow)#15321 (8) {\r\n  [\"block\":protected]=>\r\n  NULL\r\n  [\"id\":protected]=>\r\n  int(261)\r\n  [\"meta\":protected]=>\r\n  int(0)\r\n  [\"tags\":\"pocketmine\\item\\Item\":private]=>\r\n  string(32) \"\r\n        ench\r\nidlvl\"\r\n  [\"cachedNBT\":\"pocketmine\\item\\Item\":private]=>\r\n  object(pocketmine\\nbt\\tag\\CompoundTag)#15317 (4) {\r\n    [\"__name\":protected]=>\r\n    string(0) \"\"\r\n    [\"value\":protected]=>\r\n    NULL\r\n    [\"ench\"]=>\r\n    object(pocketmine\\nbt\\tag\\ListTag)#15318 (4) {\r\n      [\"tagType\":\"pocketmine\\nbt\\tag\\ListTag\":private]=>\r\n      int(10)\r\n      [\"__name\":protected]=>\r\n      string(4) \"ench\"\r\n      [\"value\":protected]=>\r\n      NULL\r\n      [\"1\"]=>\r\n      object(pocketmine\\nbt\\tag\\CompoundTag)#15320 (4) {\r\n        [\"__name\":protected]=>\r\n        string(0) \"\"\r\n        [\"value\":protected]=>\r\n        NULL\r\n        [\"id\"]=>\r\n        object(pocketmine\\nbt\\tag\\ShortTag)#15312 (2) {\r\n          [\"__name\":protected]=>\r\n          string(2) \"id\"\r\n          [\"value\":protected]=>\r\n          int(19)\r\n        }\r\n        [\"lvl\"]=>\r\n        object(pocketmine\\nbt\\tag\\ShortTag)#15224 (2) {\r\n          [\"__name\":protected]=>\r\n          string(3) \"lvl\"\r\n          [\"value\":protected]=>\r\n          int(3)\r\n        }\r\n      }\r\n    }\r\n    [\"display\"]=>\r\n    object(pocketmine\\nbt\\tag\\CompoundTag)#15220 (3) {\r\n      [\"__name\":protected]=>\r\n      string(7) \"display\"\r\n      [\"value\":protected]=>\r\n      NULL\r\n      [\"Name\"]=>\r\n      object(pocketmine\\nbt\\tag\\StringTag)#15316 (2) {\r\n        [\"__name\":protected]=>\r\n        string(4) \"Name\"\r\n        [\"value\":protected]=>\r\n        string(6) \"Bowasd\"\r\n      }\r\n    }\r\n  }\r\n  [\"count\"]=>\r\n  int(1)\r\n  [\"durability\":protected]=>\r\n  int(0)\r\n  [\"name\":protected]=>\r\n  string(3) \"Bow\"\r\n}\r\n```\r\nWhen swap slot with Air:\r\n```\r\nobject(pocketmine\\item\\Bow)#15457 (8) {\r\n  [\"block\":protected]=>\r\n  NULL\r\n  [\"id\":protected]=>\r\n  int(261)\r\n  [\"meta\":protected]=>\r\n  int(0)\r\n  [\"tags\":\"pocketmine\\item\\Item\":private]=>\r\n  string(32) \"\r\n        ench\r\nidlvl\"\r\n  [\"cachedNBT\":\"pocketmine\\item\\Item\":private]=>\r\n  NULL\r\n  [\"count\"]=>\r\n  int(1)\r\n  [\"durability\":protected]=>\r\n  int(0)\r\n  [\"name\":protected]=>\r\n  string(3) \"Bow\"\r\n}\r\n```\r\nStill with that Bow, trying to rename in Anvil and var_dump:\r\n```\r\nobject(pocketmine\\item\\Bow)#15665 (8) {\r\n  [\"block\":protected]=>\r\n  NULL\r\n  [\"id\":protected]=>\r\n  int(261)\r\n  [\"meta\":protected]=>\r\n  int(0)\r\n  [\"tags\":\"pocketmine\\item\\Item\":private]=>\r\n  string(78) \"\r\ntag\r\nRepairCost\r\ndisplaNameBowasd        ench\r\nidlvl\"\r\n  [\"cachedNBT\":\"pocketmine\\item\\Item\":private]=>\r\n  NULL\r\n  [\"count\"]=>\r\n  int(1)\r\n  [\"durability\":protected]=>\r\n  int(0)\r\n  [\"name\":protected]=>\r\n  string(3) \"Bow\"\r\n}\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/iTXTech/Genisys/issues/comments/230725355","html_url":"https://github.com/iTXTech/Genisys/issues/1324#issuecomment-230725355","issue_url":"https://api.github.com/repos/iTXTech/Genisys/issues/1324","id":230725355,"user":{"login":"PeratX","id":13656668,"avatar_url":"https://avatars.githubusercontent.com/u/13656668?v=3","gravatar_id":"","url":"https://api.github.com/users/PeratX","html_url":"https://github.com/PeratX","followers_url":"https://api.github.com/users/PeratX/followers","following_url":"https://api.github.com/users/PeratX/following{/other_user}","gists_url":"https://api.github.com/users/PeratX/gists{/gist_id}","starred_url":"https://api.github.com/users/PeratX/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PeratX/subscriptions","organizations_url":"https://api.github.com/users/PeratX/orgs","repos_url":"https://api.github.com/users/PeratX/repos","events_url":"https://api.github.com/users/PeratX/events{/privacy}","received_events_url":"https://api.github.com/users/PeratX/received_events","type":"User","site_admin":false},"created_at":"2016-07-06T09:38:25Z","updated_at":"2016-07-06T09:38:25Z","body":"DropItem will fully store item's nbt, that's mean this is not server's fault, because namedTags of Item has changed properly"}}
{"actor":{"display_login":"PeratX"}}