Updated chapter 19 code to work with Canary Mod