def is_in_chunk(life, chunk_key):
	_chunk = maps.get_chunk(chunk_key)
	
	if life['pos'][0] >= _chunk['pos'][0] and life['pos'][0] <= _chunk['pos'][0]+WORLD_INFO['chunk_size']\
		and life['pos'][1] >= _chunk['pos'][1] and life['pos'][1] <= _chunk['pos'][1]%WORLD_INFO['chunk_size']:
			return True
	
	return False
dataset/ETHPy150Open flags/Reactor-3/alife/chunks.py/is_in_chunk/operator `+` -> `%`