update building lua script to only care about buildings