In the Qing period, Lungshan Temple was far more than a place of worship. It was the center of faith, self-government and self-defense for Bangka. Disputes, lawsuits and mediation could all be brought before the deity for a just ruling. The Three Districts merchants' guild, called the Quanjiao, used it as its base. Local tradition adds darker chapters of feuds between settler communities, and tells of a pregnant woman washing clothes in the temple pond who raised the alarm about an attack and was killed. She is honored as the Lady of the Pool Head and is worshipped beside the goddess who protects childbirth. The building itself endured many trials. It was repaired after the great earthquake of 1815 and again after a storm in 1867. In 1919 termites had eaten into its beams, and the abbot, Master Fuzhi, led the campaign to rebuild, donating his own savings first. Under Japanese rule parts of the temple served as a school, barracks and offices, and Guangzhou Street was cut through in 1919, turning the pond in front into a fountain. The most moving chapter came in 1945. Air raids destroyed the central hall, yet the statue of Guanyin sat unharmed on her lotus throne. Residents had often sheltered beneath that lotus seat, but on the eve of the raid they went home, driven off by fierce mosquitoes. So when the hall was destroyed, no one was inside. Neighbors took it as the Bodhisattva's protection, and her place in the community's heart grew deeper still.