Repaired getNextValue infinite loop bug, now the villagers drown
perfectly.