{"action":"created","issue":{"url":"https://api.github.com/repos/iTXTech/Genisys/issues/1639","repository_url":"https://api.github.com/repos/iTXTech/Genisys","labels_url":"https://api.github.com/repos/iTXTech/Genisys/issues/1639/labels{/name}","comments_url":"https://api.github.com/repos/iTXTech/Genisys/issues/1639/comments","events_url":"https://api.github.com/repos/iTXTech/Genisys/issues/1639/events","html_url":"https://github.com/iTXTech/Genisys/issues/1639","id":170769788,"number":1639,"title":"addWindow() broken","user":{"login":"GenisysFTW","id":18363310,"avatar_url":"https://avatars.githubusercontent.com/u/18363310?v=3","gravatar_id":"","url":"https://api.github.com/users/GenisysFTW","html_url":"https://github.com/GenisysFTW","followers_url":"https://api.github.com/users/GenisysFTW/followers","following_url":"https://api.github.com/users/GenisysFTW/following{/other_user}","gists_url":"https://api.github.com/users/GenisysFTW/gists{/gist_id}","starred_url":"https://api.github.com/users/GenisysFTW/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GenisysFTW/subscriptions","organizations_url":"https://api.github.com/users/GenisysFTW/orgs","repos_url":"https://api.github.com/users/GenisysFTW/repos","events_url":"https://api.github.com/users/GenisysFTW/events{/privacy}","received_events_url":"https://api.github.com/users/GenisysFTW/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2016-08-11T23:24:43Z","updated_at":"2016-08-17T15:47:16Z","closed_at":null,"body":"#### Issue description\r\naddWindow() is still not working. When I'm at spawn (near X: 128, Z: 128), addwWindow() doesn't work. But when I to myself to\r\nX: 1000\r\nZ: 1000\r\naddWindow() suddenly starts working.\r\n\r\n#### Steps to reproduce the issue\r\n1. Be at the initial spawn of your world (128,~,128)\r\n2. Spawn a chest block. ($level->setBlock())\r\n3. Spawn a chest tile. ($nbt..., Tile::createTile())\r\n4. Add window to yourself. ($player->addWindow($tileChest->getInventory()))\r\n\r\n#### OS and versions\r\n* Genisys: c19e8509\r\n* PHP: 7.0.8 and 7.0.9\r\n* Server OS: Ubuntu 14.04 and Ubuntu 16.04\r\n* Game version: 0.15.4 and 0.15.6\r\n\r\n```\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/iTXTech/Genisys/issues/comments/240455098","html_url":"https://github.com/iTXTech/Genisys/issues/1639#issuecomment-240455098","issue_url":"https://api.github.com/repos/iTXTech/Genisys/issues/1639","id":240455098,"user":{"login":"ishitatsuyuki","id":12389383,"avatar_url":"https://avatars.githubusercontent.com/u/12389383?v=3","gravatar_id":"","url":"https://api.github.com/users/ishitatsuyuki","html_url":"https://github.com/ishitatsuyuki","followers_url":"https://api.github.com/users/ishitatsuyuki/followers","following_url":"https://api.github.com/users/ishitatsuyuki/following{/other_user}","gists_url":"https://api.github.com/users/ishitatsuyuki/gists{/gist_id}","starred_url":"https://api.github.com/users/ishitatsuyuki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ishitatsuyuki/subscriptions","organizations_url":"https://api.github.com/users/ishitatsuyuki/orgs","repos_url":"https://api.github.com/users/ishitatsuyuki/repos","events_url":"https://api.github.com/users/ishitatsuyuki/events{/privacy}","received_events_url":"https://api.github.com/users/ishitatsuyuki/received_events","type":"User","site_admin":false},"created_at":"2016-08-17T15:47:16Z","updated_at":"2016-08-17T15:47:16Z","body":"Thank you for the details. It seems it's improperly converted if it's negative. (int cast vs floor())"}}
{"actor":{"display_login":"ishitatsuyuki"}}