Disable anvil, fix errors
Disabled anvil input because it's too much of a pain to make work, especially across versions. Chat will now be used if you had it set to anvil.
Also fixed an error related to chat input and fixed a math issue in the chat input code.