Remove trailing whitespace
Listen for texture refresh event, fixes old break textures persisting after texture pack change

Requires deathcap/artpacks@45fa8ce3bd9f57fd8abe9ced12e9df22ff672ae7

Ref https://github.com/deathcap/artpacks/issues/5