def get_block_at(self, x, y, background): if y < 0 or y >= World.HEIGHT: return "air" if background: return World.get_id_name(self.background_blocks[y][x]) else: return World.get_id_name(self.foreground_blocks[y][x])
def get_block_at(self, x, y, background): if background: return World.get_id_name(self.background_blocks[y][x]) else: return World.get_id_name(self.foreground_blocks[y][x])