Core/Misc: Get rid of whitespaces added in 96e0a7d71f1c5146aa64502d49e0cc2260f7ca16
Core/Items: Fixed an exploit allowing people to put more gems than number of sockets on items.

Closes #11652