{"action":"opened","issue":{"url":"https://api.github.com/repos/rlf/uSkyBlock/issues/364","labels_url":"https://api.github.com/repos/rlf/uSkyBlock/issues/364/labels{/name}","comments_url":"https://api.github.com/repos/rlf/uSkyBlock/issues/364/comments","events_url":"https://api.github.com/repos/rlf/uSkyBlock/issues/364/events","html_url":"https://github.com/rlf/uSkyBlock/issues/364","id":73588370,"number":364,"title":"Problem with challenge rewards. ","user":{"login":"archmohaa","id":4545175,"avatar_url":"https://avatars.githubusercontent.com/u/4545175?v=3","gravatar_id":"","url":"https://api.github.com/users/archmohaa","html_url":"https://github.com/archmohaa","followers_url":"https://api.github.com/users/archmohaa/followers","following_url":"https://api.github.com/users/archmohaa/following{/other_user}","gists_url":"https://api.github.com/users/archmohaa/gists{/gist_id}","starred_url":"https://api.github.com/users/archmohaa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/archmohaa/subscriptions","organizations_url":"https://api.github.com/users/archmohaa/orgs","repos_url":"https://api.github.com/users/archmohaa/repos","events_url":"https://api.github.com/users/archmohaa/events{/privacy}","received_events_url":"https://api.github.com/users/archmohaa/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-05-06T10:50:37Z","updated_at":"2015-05-06T10:50:37Z","closed_at":null,"body":"Heya, we are having problems a lot of the time with reward quantities being given from challenges to the players. If they are supposed to get 4 sand for eg it will sometimes change and give everyone 1.\r\n\r\nBasically the problem is here:\r\n\r\nhttps://github.com/rlf/uSkyBlock/blob/master/src/main/java/us/talabrek/ultimateskyblock/challenge/ChallengeLogic.java#L354\r\n\r\nIn the array returned by getItemReward being given to the player each item stack needs to be cloned first before it is given out and it should fix the problem. "}}