Bug fixes (1.7)

I fixed the bug. that a villager throw error if he get attacked.