Should god have cared more about his fancy temple?

Being allowed to have the temple at all meant that God was happy with you. So when you pissed him off, he let it be destroyed.